[joy-ui][Textarea] Focused border color is not changed to danger
when setting error = true
and focus textarea
at the same time
#39466
Labels
danger
when setting error = true
and focus textarea
at the same time
#39466
Duplicates
Latest version
Steps to reproduce 馃暪
Link to live example:
Steps:
TextArea
ref
toslotProps.textarea.ref
error = true
and callref.current?.focus()
at the same time, e.g. using button click.Current behavior 馃槸
The color of the focused border is not changed to
danger
color.Expected behavior 馃
The focused border color should be changed to
danger
.Context 馃敠
This use case is used in React Hook Form error handling after client-side form validation fails to pass when the submit button is clicked.
Your environment 馃寧
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: