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
I usually use this library extension in my project's forms and I want to use the HTML5 required attribute to validate if my select is fulfilled correctly. I tried putting it on the select2 tag, but didn't work as expected.
Is there support for it? If not, can I make a PR with this improvement?
Thanks for this awesome library.
The text was updated successfully, but these errors were encountered:
Well, I discovered that the select2 directive does transfer the attributes to the internal input hidden field, even the required attribute. The problem is that the HTML5 specification does not validate hidden fields.
But I don't know about HTML5 semantics, acessibility and I dont think it was an elegant solution. Because of that, I don't think that this may be useful for this project and maybe I will do this only on my company's project, because there is no rule there. 😁
I will study more about this difficulty and about this project's code.
Hi,
I usually use this library extension in my project's forms and I want to use the HTML5 required attribute to validate if my select is fulfilled correctly. I tried putting it on the select2 tag, but didn't work as expected.
Is there support for it? If not, can I make a PR with this improvement?
Thanks for this awesome library.
The text was updated successfully, but these errors were encountered: