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
Hi there. Unfortunately, this is a symptom of how we use the formdata event to make Shoelace form controls work with regular forms. I don't believe it's something we can easily fix in the current version (but if someone manages to, a PR would be welcome!).
That said, you'll be happy to know that Web Awesome ("Shoelace 3") has already moved to Form-associated Custom Elements via the ElementInternals API. This API didn't exist when Shoelace was first developed, but it lets us build form controls that act as first-class citizens in a native form.
I can confirm that this issue has already been solved in Web Awesome :)
what's more, if you create a form dynamically by adding inputs to it (e.g. you insert fields into the form using htmx), then validation of new fields does not work at all (it means submit behaves as if they were not there at all)
Describe the bug
when sending a form with blank but required fields, an error message is shown for a random required field
To Reproduce
Steps to reproduce the behavior:
Screenshots
Browser / OS
Additional information
should validate fields in the order they are in the form
The text was updated successfully, but these errors were encountered: