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 up a modal the parent page automatically focuses to the top of the page. This makes it scroll to the top of the page.
This is fine for most cases however for some modals it is not useful. They are not necessarily new pages and for longer pages when opening a modal the focus will make it jump to the top. After closing, you would then have to scroll back down to where you were.
Can this change so we have the option to prevent this happening for opening a modal? Is there an alternative we could implement so that it doesnt happen for specific modals on our project?
The text was updated successfully, but these errors were encountered:
@hwduncan To fix this issue please use Config.REDIRECT_SCROLLS_UP = false; in your TS file.
For instance in your case, on your main page add this code Config.REDIRECT_SCROLLS_UP = false; and after that all modal will be opened but you would not experience any scroll to the top.
Olive.MvcJs/src/olivePage.ts
Lines 82 to 85 in 2b871fe
When opening up a modal the parent page automatically focuses to the top of the page. This makes it scroll to the top of the page.
This is fine for most cases however for some modals it is not useful. They are not necessarily new pages and for longer pages when opening a modal the focus will make it jump to the top. After closing, you would then have to scroll back down to where you were.
Can this change so we have the option to prevent this happening for opening a modal? Is there an alternative we could implement so that it doesnt happen for specific modals on our project?
The text was updated successfully, but these errors were encountered: