- Issue created by @marcus.williams
- First commit to issue fork.
- Merge request !105Issue #3465184 by gxleano: Fix required validation on input and select for tags custom element → (Merged) created by gxleano
- 🇪🇸Spain gxleano Cáceres
When working with HTML custom elements (
<tags>
), native form validation—including the required attribute—won’t function automatically. The browser’s form validation system is built to work with standard HTML form elements, such as<input>
,<textarea>
, and<select>
. Instead of using a hidden class to conceal the<input>
or<select>
elements, we can employ a subtle trick to keep the input element present but invisible. This allows us to benefit from the native required validation while maintaining the use of custom elements.