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

[Bug Report] v-menu open-on-hover doesn't always close correctly if the mouse leaves the page. #5843

Closed
parktheredcar opened this issue Dec 8, 2018 · 0 comments
Labels
S: has PR The issue has a pending Pull Request

Comments

@parktheredcar
Copy link
Contributor

Versions and Environment

Vuetify: 1.3.12
Vue: 2.5.18
Browsers: Chrome 70.0.3538.110
OS: Windows 10

Steps to reproduce

Race condition where the close finishes before the initial open is done and the mouse has left the page. Move the mouse quickly across the dropdown button from bottom to top, outside the page, and the menu will get stuck open.

Expected Behavior

The menu doesn't get stuck open.

Actual Behavior

The menu gets stuck open.

Reproduction Link

https://codepen.io/parktheredcar/full/pqzOvg

parktheredcar added a commit to parktheredcar/vuetify that referenced this issue Dec 8, 2018
Fix for vuetifyjs#5843 - in the event isActive has been reset to false between the time runDelay(open) was called and when we were provisioned this animation frame, sync up hasJustFocused to false and do a no-op assign to isContentActive which doesn't trigger the watcher. Resolve the promise although it's not really needed, just so we aren't breaking promises.
@jacekkarczmarczyk jacekkarczmarczyk added the S: has PR The issue has a pending Pull Request label Dec 8, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S: has PR The issue has a pending Pull Request
Projects
None yet
Development

No branches or pull requests

2 participants