required
attribute not automatically applied?
#7906
Unanswered
TylerAPfledderer
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I'm facing a similar problem. I need the attribute required for style proposals. Another option is to use @TylerAPfledderer Here is how i solved it:
Then, I use it like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
@TylerAPfledderer Here is exactly what you need - https://substack.com/profile/200733325-runespoor-engineering/note/c-66073144 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all!
I have not seen a discussion already about this. If there is one, please refer me to that post! :)
This is two questions, with one related to use in the ChakraUI
When registering with the "required" property, why is the
required
attribute not automatically applied to the form field element? That would be troublesome in meeting accessibility standards if the required attribute didn't render true, yet the "required" property is applied, no?To go along with the above, is there a way to access the
required
property fromregister
to use on the ChakraUIFormControl
component and itsisRequired
prop, so styling and the use of therequired
attribute can be applied through that?Beta Was this translation helpful? Give feedback.
All reactions