mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
Here integrated native fields validation into our form utilities. It will let us have more isolated validation complexity within each field. The trick was to detect if any error are not shown. Solved by iterating form.elements and checking its input.validity.valid and data-color=error attribute. <img width="417" alt="Screenshot 2024-05-16 at 01 08 37" src="https://github.com/webstudio-is/webstudio/assets/5635476/ce112f00-aafd-4388-bb0b-a64baccaffac">