react-responsive-modal icon indicating copy to clipboard operation
react-responsive-modal copied to clipboard

Problem with scroll position, when you have links.

Open bazzzooQa opened this issue 6 years ago • 2 comments

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 avatar Dec 05 '19 05:12 bazzzooQa

@bazzzooQa I just ran into this .. did you get to a solution?

sa77 avatar Mar 23 '20 04:03 sa77

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.

pradel avatar Apr 06 '20 10:04 pradel