alpinejs-plugin-simple-validate icon indicating copy to clipboard operation
alpinejs-plugin-simple-validate copied to clipboard

List items created by Alpine's x-for are not picked up for validation?

Open AkosLukacs opened this issue 1 year ago • 1 comments

Hi,

I want to create a form, where the users can enter data for multiple items. Here is a simple example, where user can push the "Add dynamic item" button, and a new name and description field is added for a new item: https://github.com/AkosLukacs/alpinejs-plugin-simple-validate/blob/items/examples/dynamic.html

But the validator seems to ignore these form fields. The behaviour is the same, if the list is empty or has an initial item: the validator ignores the items.

AkosLukacs avatar Jul 25 '24 12:07 AkosLukacs

Thanks. I'll add this as a bug and look at it when I have time. Note that my schedule is really busy for the next while so I may take me a bit to get to it.

colinaut avatar Jul 29 '24 20:07 colinaut