react-components icon indicating copy to clipboard operation
react-components copied to clipboard

`Modal`/`ConfirmationModal`: Maintain focus

Open Dampolo03 opened this issue 1 year ago • 1 comments

I have a ConfirmationModal or Modal with children - Input and TextArea components. When I focus into the text area and begin to type, there's some sort of re-render, the focus keeps getting lost from the text area and returns to the input component. screencast-gif

Dampolo03 avatar Mar 28 '24 08:03 Dampolo03

There is some logic in the modal to keep focus within it (so when focus moves out it returns to first focusable element). It seems like this issue may be related to that functionality.

bartaz avatar Mar 28 '24 08:03 bartaz