awcodes / filament-curator

A media picker plugin for Filament Panels.
MIT License
343 stars 89 forks source link

We can only select multiple medias if one is already attached #536

Closed MallauryGerard closed 3 months ago

MallauryGerard commented 3 months ago

Filament Version

3.2

Plugin Version

3.6.9

PHP Version

8.3

Problem description

It is not possible to select several media if the model is blank. The first image must be selected before selecting more images.

  CuratorPicker::make('photos_ids')
      ->label('')
      ->multiple()
      ->lazyLoad()
      ->directory($path)
      ->buttonLabel('Ajouter des photos')
      ->relationship('photos', 'id')
      ->orderColumn('order'),

Expected behavior

We would be able to select multiple medias

Steps to reproduce

Here is a video Recording 2024-09-02 at 11 44 17

Reproduction repository

No response

Relevant log output

No response

MallauryGerard commented 3 months ago

Ok I just figured out that there is a configuration "multi_select_key". But that's strange both behaviors are different