You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Sometimes, we need to get an array field to be emptied.
Currently, the only way to achieve that is to remove each row of the array input, one by one because the inner form iterator does not have any clear action available.
Describe the solution you'd like
A "Clear items" call to action that will remove all the items at once.
Describe alternatives you've considered
We did a custom ArrayInput that implement this functionalities:
Is your feature request related to a problem? Please describe.
Sometimes, we need to get an array field to be emptied.
Currently, the only way to achieve that is to remove each row of the array input, one by one because the inner form iterator does not have any clear action available.
Describe the solution you'd like
A "Clear items" call to action that will remove all the items at once.
Describe alternatives you've considered
We did a custom
ArrayInput
that implement this functionalities:It does the trick, however the rendering is not really clean when used with a
helperText
prop:We should override directly the
SimpleFormIterator
instead. However, we have to copy/paste all the original logic of the vendor one, quite cumbersome.Additional context
Note: As this action may be more dangereous as the other, we may make it not available by default with a
enableClear
prop.The text was updated successfully, but these errors were encountered: