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
Hi! I've noticed the issue with focus behavior when scrolling using the scrollbar. By default, the focus is not lost when I scroll with the scrollbar but when I use the same input in the modal, it loses focus. See attachment below.
CleanShot.2023-03-31.at.10.21.12.mp4
Steps to reproduce:
Add input inside the modal and add some content, so the modal is scrollable
I feel like it's because of the tab-index="-1" attribute of .ReactModal__Content element, after removing this attribute it does work properly, but I'm not sure what's the replacement will be 🤔
The text was updated successfully, but these errors were encountered:
Summary:
Hi! I've noticed the issue with focus behavior when scrolling using the scrollbar. By default, the focus is not lost when I scroll with the scrollbar but when I use the same input in the modal, it loses focus. See attachment below.
CleanShot.2023-03-31.at.10.21.12.mp4
Steps to reproduce:
Expected behavior:
Focus on input is not lost
Link to example of issue:
Link to the example https://codepen.io/pavelkeyzik/pen/MWqdZdJ
Additional notes:
I feel like it's because of the
tab-index="-1"
attribute of.ReactModal__Content
element, after removing this attribute it does work properly, but I'm not sure what's the replacement will be 🤔The text was updated successfully, but these errors were encountered: