ngbolt / ng-bolt

Front-end framework built on AngularJS for rapid development of responsive web applications.
https://ngbolt.github.io
Other
4 stars 2 forks source link

"required" attribute does not work for checkbox-radio #62

Closed ats5364 closed 7 years ago

ats5364 commented 7 years ago

Regardless of whether data-required is set to true, false, or not even included, both checkbox and radio experience problems with the attribute. Regardless of what it's set to, an error appears when a value is not picked and the page focus shifts from the field. For checkbox, the required error appears under the checkbox. For radio, the first radio option's text turns to red and a blank space appears underneath, where one might expect to see an error message.

On top of this, if data-required is set to true, then that isn't even reflected in the DOM.