Skip to content
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

Modal hides when scrolling with scrollBar #5893

Closed
woricek opened this issue Aug 6, 2020 · 0 comments · Fixed by #6023 · May be fixed by #6478
Closed

Modal hides when scrolling with scrollBar #5893

woricek opened this issue Aug 6, 2020 · 0 comments · Fixed by #6023 · May be fixed by #6478

Comments

@woricek
Copy link

woricek commented Aug 6, 2020

Bug description: When text in modal is longer than the height of the page, it is scrollable. When scrolling with mousewheel everything works. When you move scroll with mouse, it is registered as clickedInBackdrop in ModalContainerComponent. Because scrollbar is part of the modal-container element. This hides the modal (when you dont set ignoreBackdropClick to true).

Plunker/StackBlitz that reproduces the issue:
Just add many lines of text to basic modal in demo page and you can reproduce the issue.

Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: 5.6.2

Expected behavior
Clicking inside scrollbar should not hide modal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants