thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Media Picker is always expanded even when setting "expanded":false #4984

Closed josecsm closed 4 years ago

josecsm commented 4 years ago

Version information

Description

I'm setting {"expanded":false} in the attributes of any Media Picker BREAD field and when I enter the edit page, it's always expanded.

I have even modified the vendo/tcg/.../views/formfields/media_picker.blade.php and hardcoded :expanded="false" with no luck

Steps To Reproduce

Steps to reproduce the behavior:

  1. create a Media Picker field
  2. add as attribute { "expanded":false }
  3. Save BREAD configuration
  4. Enter BREAD and edit object

Expected behavior

The media picker should be closed. It only closes when you press the close button

emptynick commented 4 years ago

Interestingly expanded is a data-attribute, not a prop which it should be to function.

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.