-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix(bal-modal): opening bal-modal leads to page scroll to top #1396
🐛 fix(bal-modal): opening bal-modal leads to page scroll to top #1396
Comments
/cib |
Branch fix/issue-1396 created! |
* Create PR for #1396 * fix(modal): keep scroll position --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Gery Hirschfeld <[email protected]>
A builded angular app still does scroll to the top |
/cib |
Branch fix/issue-1396 created! |
Could not reproduce the issue |
created a version with logs to investigate the angular issue |
@FilipMarkovski 16.2.0-snapshot.1402-8b748b200 |
@hirsch88 If you can, keep this issue open until the required libraries are updated to the latest version of Design System, because that change will come in some of the future sprints. |
The problem is definitely within the two internal libraries that are indirectly fetching the legacy @baloise/design-system-components. We just saw the results after we got rid of both of them. If you want, you can close this ticket as "resolved". For anybody else reading this issue, run "npm ls @baloise/design-system-components". If one of the dependencies are still fetching design system < v16, you should upgrade them. |
Current Behavior
bal-modal does not restore the scroll position.
If the page is long, then opening the modal which is in the bottom of the page, leads to the page will be scrolled to top when bal-modal is opened.
Expected Behavior
I expect that the page will keep the scroll postion when bal-modal is opened or closed.
Steps to Reproduce
Code Sandbox
in the Baloise document link.Version
latest
Browsers
Chrome, Microsoft Edge
Device
Desktop
Code Reproduction URL
https://codesandbox.io/p/sandbox/angular-forked-p65s8z?file=%2Fsrc%2Fapp%2Fexample.component.html%3A5%2C1
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: