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
When opening the modal dialog, the background scrolls to the top and then freezes, no further scrolling is allowed. After closing the dialog the view is back to where I've opened the modal. I want to disable this automatic scroll to the top of the background page but still keep no scroll behavior while the modal is open.
I've tried to remove the noscroll modifier from x-trap.noscroll.inert="show && showActiveComponent", which disables the automatic scroll, but also enables scrolling in general which I don't want. Is it possible to achieve the desired behavior?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When opening the modal dialog, the background scrolls to the top and then freezes, no further scrolling is allowed. After closing the dialog the view is back to where I've opened the modal. I want to disable this automatic scroll to the top of the background page but still keep no scroll behavior while the modal is open.
I've tried to remove the noscroll modifier from
x-trap.noscroll.inert="show && showActiveComponent"
, which disables the automatic scroll, but also enables scrolling in general which I don't want. Is it possible to achieve the desired behavior?Beta Was this translation helpful? Give feedback.
All reactions