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
Passing <Input required /> visually denotes it as being required — I'd expect it to actually pass the prop down to the underlying input, which it doesn't
Just leaving myself this note here.
The text was updated successfully, but these errors were encountered:
Hi. I had the same expectation, but am currently working on a form where this behavior makes sense. The form in question can be saved as a draft or published, and being able to mark its fields as required without setting it on the input has turned out to be useful.
@oxaudo suggested adding a separate visuallyRequired prop for the use case that I described since there may be several uses of the required prop that depend on it not being passed down to the underlying input.
@iskounen To me it just sounds like this component is semantically confusing. It's not just an input, it's a field complete with label. To me that's something else entirely. Inputs on their own should be unsurprising and accept the complete range of native props.
Passing
<Input required />
visually denotes it as being required — I'd expect it to actually pass the prop down to the underlying input, which it doesn'tJust leaving myself this note here.
The text was updated successfully, but these errors were encountered: