Open michalkvasnicak opened 3 years ago
This seems to be caused by autofocus on mount. Basically we should check if the dialog is open and focus the element only if dialog is open. This should be fixed by passing open
to focus
arg.
The issue isn't happening if the input if we click into the focused input or type in something.
If dialog with input is open and input is focused using
focusElementRef
and thenEsc
is pressed, page is scrolled down.