Commit Graph

13 Commits

Author SHA1 Message Date
Lucas Mazza 32bfb9503d
Do not emit `aria-invalid="false"` attributes for inputs without errors. 2016-07-01 14:29:26 -03:00
amoose 644af1257a
Adds aria-invalid attribute to fields with errors 2016-06-03 09:37:02 -07:00
Vasiliy Ermolovich a280ba770f Make it possible to override required value that was set in the wrapper. 2015-05-05 11:29:58 +03:00
Rafael Mendonça França 15f0101545 Pass the options hash instead of the Leaf object
Right now we only care about the options so lets make the code simpler
2014-03-11 19:41:25 -03:00
Rafael Mendonça França e9384fb4bd Whitespaces 2014-03-11 19:13:59 -03:00
Rafael Mendonça França 44f22ca3fb Make context optional
We plan to make it required in the future but it is optional now to make
easier to implement backwards compatibility
2014-03-11 15:22:45 -03:00
Rafael Mendonça França 645988a855 Pass the context when rendering the component 2014-03-10 18:41:36 -03:00
Carlos Antonio da Silva b2046da174 Create an "aria-required" symbol instead of generating strings 2013-04-13 19:52:01 -03:00
Cameron Cundiff 88e8ca2f77 Move aria-required option to html5 component.
[Finishes #780]
2013-04-11 08:20:32 -04:00
Renato Mascarenhas 34312c9fbc Use 1.9 hash style on code and docs. 2013-01-28 19:02:59 -02:00
José Valim d245019220 Only add required if browser_validations is enabled. 2011-12-05 13:11:02 +01:00
José Valim 2d41fafe9b Move required to html5 component. 2011-12-05 10:44:02 +01:00
José Valim 4391685bfd Make html5 a wrapper option. 2011-12-04 16:15:32 +01:00