react-responsive-modal
react-responsive-modal copied to clipboard
Problem with scroll position, when you have links.
If you have a lot of content for modal so scroll is needed and f.e. you have link (<a href="/any-link" />) somewhere at the bottom, the scroll position will be set to this link (does it make sense?).
Can't figure out what the problem is...
Any suggestions?
@bazzzooQa I just ran into this .. did you get to a solution?
This is because of autofocus, the focus will be set in the modal in the first focusable element when you open the modal. If you want to disable this behavior you can set focusTrapped to false.