Can't use SpatieTagsInput in a bulk action #465
-
I'm using SpatieTagsInput in a modal defined as a Bulk Action on my resource:
The example above includes both the standard TagsInput (tags1) and the SpatieTagsInput (tags1). When the form is submitted ONLY the tags1 value is passed to the action method; tags2 is absent from the $data array. I can get it to work (i.e. pass through the value for tags2) by commenting out the following line in the
I assume this is however needed for the normal operation of the plugin. Why am I prevented from using SpatieTagsInput in a bulk action? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've discovered a workaround that might be painfully obvious to FilamentPHP experts. It seems the key is to enable dehydration on the SpatieTagsInput field when defining the form on the bulk action, for example:
Might be a good idea to get this into the documentation. |
Beta Was this translation helpful? Give feedback.
I've discovered a workaround that might be painfully obvious to FilamentPHP experts. It seems the key is to enable dehydration on the SpatieTagsInput field when defining the form on the bulk action, for example:
Might be a good idea to get this into the documentation.