-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
b-dropdown does not close when clicking on the dropdown button (Safari & Firefox Only) #4328
b-dropdown does not close when clicking on the dropdown button (Safari & Firefox Only) #4328
Comments
@achen116, It appears (to me) to be Mac OS related, as Firefox (v70.0) on Windows doesn't appear to recreate the issue (in both scenarios). Unfortunately I can't test on Safari 😞 . Do you have any browser extensions that might possibly be interfering? is your screen a touch screen or just a regular display? If using Chrome on Mac do you experience the same issue? What if you try an older version of Firefox, does the issue persist? |
@tmorehouse Correct, I don't experience the problem on Windows either. Sorry I forgot to mention that in the original description.
From my own debugging, it appears the click event is fired twice once it's open, which keeps the dropdown open. I can see that |
Bizzare... I wonder if the trackpad is emulating touch events instead of click events when used with Safari and Firefox (but not Chrome)? Would be interesting to see if a plain mouse has the same issues. We might need to add the safari hack of adding empty |
@achen116 PR #4329 may fix this... Could you test out the following preview for us (since we don't have access to a Mac)? And let us know if this fixes your issue? https://deploy-preview-4329--bootstrap-vue.netlify.com/docs/components/dropdown/ It is a wild guess at what might be the root cause of the issue.. The test |
@tmorehouse Unfortunately, the issue is still happening on the preview 😞I tried with a regular mouse on both Safari & Firefox on Mac and run into the same problem.
|
@jackmu95 has access to a Mac, so he is going to help see if we can find the culprit. |
Awesome! Thanks @tmorehouse & @jackmu95 👍Let me know if there are any other details you need from me in the meantime. |
@tmorehouse I was testing the new update and realized I can still reproduce this bug when |
@jackmu95 could you check this out on Mac? |
@achen116 does it happen if the tabs are in |
@tmorehouse I can confirm that this issue still exists with BootstrapVue v2.1.0 when using a dropdown in tabs on Safari and Firefox on MacOS. |
Hmmm.. so not related to the |
Have to take a look. Will try to come up with a fix. |
@tmorehouse It happens in all tabs regardless of which mode they're in. |
closes #4328) (#4426) * fix(b-dropdown): focus-in handling for Safari and Firefox on macOS/iOS * Update dropdown.js * Fix dropdown toggle focus-in handling * Handle 'touchstart' * Revert "Handle 'touchstart'" This reverts commit b46ab2b. * Remove outdated stuff * Update dropdown.js * Add temporary logs * Update click-out.js * Update dropdown.js * Improve `inNavbar` detection by using provide/inject * Correct typos * add comment with link to issue * Update dropdown.js Co-authored-by: Troy Morehouse <troymore@nbnet.nb.ca>
Describe the bug
When you click on the dropdown button to open the dropdown menu and then you click on the dropdown button again, the dropdown does not close.
Steps to reproduce the bug
Expected behavior
The dropdown menu should stay closed when the Dropdown Button is clicked the second time.
Versions
Environment:
Additional context
This bug also occurs when
b-dropdown
is used withinb-tabs
. It can be reproduced by copying one of the examples from Dropdown and pasting it into one of the examples in Tabs.The text was updated successfully, but these errors were encountered: