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

fix(modal): fix the closure of modal when clicking of scrollbar in so… #6478

Closed
wants to merge 3 commits into from

Conversation

bielbh
Copy link

@bielbh bielbh commented Jun 25, 2022

Same fix that #6023 (comment) but for version v6.2.0

With some combinations of browser & OS (for ex Chrome 87 on MacOS) the scrollbar can appear above the content, and the events mousedown & mouseup will fire when clicking on it, which triggers the closure of the modal.
As click doesn't fire if we click on the scrollbar, replacing mouseup by click solves the issue (the use of mousedown being necessary to fix an other issue about text selection).

Creating tests for this scenario is complicated as the bug appears on specific browsers.

Fixes #5893 and #5810

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

@lexasq
Copy link
Contributor

lexasq commented Oct 21, 2024

Was already implemented

@lexasq lexasq closed this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modal hides when scrolling with scrollBar
2 participants