Auto focus in textarea inside model is creating problems #23165
Labels
component: FocusTrap
The React component.
support: Stack Overflow
Please ask the community on Stack Overflow
autofocus enabled textarea input which in inside modal is creating a loop on keypress and causing a performance issue. This is happening due to Unstable_TrapFocus component. I did tried disabling force autofocus with disableEnforceFocus prop.
but it didn't helped.
I think that setInterval should only be called when disableEnforceFocus is false.
Adding an option to not wrap modal children in Unstable_TrapFocus will be great.
Environment 🌎
The text was updated successfully, but these errors were encountered: