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

on opening modal, window scrolls to top

Open ElixirMike opened this issue 6 years ago • 2 comments

I read the other threads on this top from a year ago......there seemed to be a solution mentioned, but it was not clear what that solution was??

The problem, as mentioned is, when the Modal window opens, the background scrolls to top of page. I don't want it to scroll at all. I tried setting overflow: hidden, etc, and read this thread: https://github.com/reactjs/react-modal/pull/614

But it doesn't show anywhere exactly how to solve this? Is it possible? If so, what do I need to change and where?

Thanks for your help.

ElixirMike avatar Dec 05 '19 19:12 ElixirMike

See https://github.com/reactjs/react-modal/issues/117#issuecomment-205035922

chaddjohnson avatar Jul 21 '20 16:07 chaddjohnson

He specifically said that overflow: hidden is not working for him. I'm also having the same problem, and overflow: hidden also doesn't work for me

escobar5 avatar Jul 30 '21 22:07 escobar5