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
I had the issue that my page always jumped to the top when opening a featherlight modal. Especially annoying when using a mobile where a lot of scrolling is made. I had the issue on both Chrome and Firefox.
After reading into that I figured its the overflow:hidden added to the <html> tag. Reading about other modal scripts and that issue, most others added the overflow:hidden to the <body> tag, not to <html>.
After moving the overflow:hidden from <html> to <body>, my problem disappeared.
The text was updated successfully, but these errors were encountered:
Sorry about that. Sounds better in the body tag. Could you make a PR changing the CSS stylesheet? Let's not change where the with-featherlight class is added.
Hi,
I had the issue that my page always jumped to the top when opening a featherlight modal. Especially annoying when using a mobile where a lot of scrolling is made. I had the issue on both Chrome and Firefox.
After reading into that I figured its the
overflow:hidden
added to the<html>
tag. Reading about other modal scripts and that issue, most others added theoverflow:hidden
to the<body>
tag, not to<html>
.After moving the
overflow:hidden
from<html>
to<body>
, my problem disappeared.The text was updated successfully, but these errors were encountered: