Add required attribute
Similarly to any other html form elements, they have a required attribute and if set, won't let the form submit until that form element has have a value. Would be good to have such an attribute for ember-power-select as well in order to become a html-like regular form element.
@gossi eps is a "fake-select" component, meaning that there is no <select element underneath.
I'm not seeing how we can achieve this without rendering an invisible select besides eps (I remember selectize does that).
The component already accepts a required attribute that will set aria-required=true in the markup, but apparently forms don't obey this attribute the same way they obey the required=true.
I'm unaware if this can be accomplished without adding a fake input. Maybe it can be just a simple <input type="hidden" required value={{selected}}>, but I'd like first to investigate if there is a way of doing this without adding fake inputs.
+1
+1 as well
Yout can't require hidden inputs :/
Any status?
+1
Fake input or not or replacement to a standard one, it is a form element and by that should also behave like that. If a hidden input can't be required, you can use a regular input, style it to be display: none;, pass all input-field related args and attributes on that element and bind the value to the value of eps.
any updates? also "required" attribute is missed in API docs