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 a use case where the documentElement had inline styles on it, like so: <html style="padding: 0; margin: 0; overflow-x=hidden;">. I noticed that after toggling no-scroll to off, the overflow-x=hidden was being wiped out. After checking the code in no-scroll, I found that it's hard-coding the style attributes when off() is called. I think that no-scroll should be restoring whatever values were set before on() was called, instead of overwriting them.
The text was updated successfully, but these errors were encountered:
I had a use case where the
documentElement
had inline styles on it, like so:<html style="padding: 0; margin: 0; overflow-x=hidden;">
. I noticed that after toggling no-scroll to off, theoverflow-x=hidden
was being wiped out. After checking the code in no-scroll, I found that it's hard-coding the style attributes whenoff()
is called. I think that no-scroll should be restoring whatever values were set beforeon()
was called, instead of overwriting them.The text was updated successfully, but these errors were encountered: