-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select does not allow for a required attribute #11836
Comments
@oliviertassinari looks like the non-native solution uses a
|
@mciparelli If you are looking for the native require validation logic, use the native implementation of the select. |
Well it's a shame because it would be nice to be able to still have the chance to use the custom select look and feel without losing the HTML5 validation. |
@mciparelli Let us know if you find a way to change the implementation to get this done. But I have some doubt that we can achieve it. |
@material-ui/core/Select
does not allow for arequired
attribute like@material-ui/core/TextField
Expected Behavior
Should be able to add
required
attribute to the<Select>
input and it should:*
to labelrequired
attribute to the rendered<input>
tagCurrent Behavior
Currently no support for
required
attribute on<Select>
tagsSteps to Reproduce (for bugs)
https://codesandbox.io/s/qx4x1w8qlj
<Select>
input withrequired
attributeContext
Would like
<Select>
inputs to act like<TextField>
inputs to make UI consistentYour Environment
The text was updated successfully, but these errors were encountered: