whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
788 stars 228 forks source link

Field new "mode" prop. #379

Closed HenriqueSPin closed 1 year ago

HenriqueSPin commented 2 years ago

Now Nova passes a prop to fields, allowing it to behave differently in forms and in modals.

This PR receives the prop using nova mapProps mixin, and passes it to the fields in groups.

HenriqueSPin commented 2 years ago

@toonvandenbos can you please take a look?

The SearchInput.vue component from Nova, when in a modal (action) does not close the search dropdown upon clicking away. To do that, it needs to know that it is in a modal. Nova came up with this new property that is passed in forms and action views. I believe it is useful to proxy the info from Flexible to the fields inside groups.