-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
required() doesn't mark an input required #9585
Comments
I can reproduce the problem in the storybook: https://react-admin-storybook.vercel.app/?path=/story/ra-ui-materialui-input-textinput--required
However, I'm not sure if this qualifies as a bug. The And you can still add the attribute manually: <TextInput source="foo" validate={required()} required /> So I'm not sure we want to fix it. I'll wait for more feedback to move on. |
If we explicitly don't want browser validation, then it should have |
I'm marking this as an enhancement (adding |
i would like to open an MR about this but i am not sure for the position, if i should pass the attribute as an |
Validation doesn't work either on a previously disabled field MyInputB is dependent on MyInputA value |
That doesn't sound related to this issue.. |
Is your feature request related to a problem? Please describe.
Testing if an input is correctly required with react-testing-library fails:
Describe the solution you'd like
In addition to adding the
*
to the label, I'd expect the required attribute to be set.The text was updated successfully, but these errors were encountered: