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
When using the MuiOtpInput component and passing an inputRef within TextFieldsProps, the component breaks, the component doesn't accept input anymore. This appears to be due to an incompatibility with how inputRef is handled in the underlying TextField.
Steps to Reproduce:
Import and use the MuiOtpInput component.
Pass an inputRef through the TextFieldsProps to control the input programmatically.
Type anything from keyboard, the TextField component will not accept input anymore.
Expected Behavior:
Passing an inputRef to TextFieldsProps should allow for standard usage and programmatic control without breaking the MuiOtpInput component.
Possible Solutions:
Adding a fork ref behaviour to the component should fix the issue.
The text was updated successfully, but these errors were encountered:
When using the
MuiOtpInput
component and passing aninputRef
withinTextFieldsProps
, the component breaks, the component doesn't accept input anymore. This appears to be due to an incompatibility with howinputRef
is handled in the underlyingTextField
.Steps to Reproduce:
MuiOtpInput
component.inputRef
through theTextFieldsProps
to control the input programmatically.Expected Behavior:
Passing an
inputRef
toTextFieldsProps
should allow for standard usage and programmatic control without breaking theMuiOtpInput
component.Possible Solutions:
Adding a fork ref behaviour to the component should fix the issue.
The text was updated successfully, but these errors were encountered: