-
Notifications
You must be signed in to change notification settings - Fork 5
Date & Time Field revamp #2664
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
Date & Time Field revamp #2664
Conversation
sx={{ | ||
"& .Mui-focused.MuiAutocomplete-inputRoot fieldset.MuiOutlinedInput-notchedOutline": | ||
{ | ||
borderColor: invalidInput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confused as to why we have to do that at the css level? Is the error prop or FormControl wrap not working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agalin920 This is so that the border stays red even if the user has the input focused and they're typing in an invalid time format. Default behavior of the input field turns it into orange when focused even if the error prop is true
Closes #2417
Screencast.from.04-11-2024.10.27.16.AM.webm