Skip to content

Commit

Permalink
fix(VMenu): hover stuck open when mouse exits page (#5844)
Browse files Browse the repository at this point in the history
fixes #5843
Fix for #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.
  • Loading branch information
parktheredcar authored and johnleider committed Dec 9, 2018
1 parent e015ee3 commit 62ecb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/mixins/menuable.js
Expand Up @@ -329,7 +329,7 @@ export default Vue.extend({
},
startTransition () {
return new Promise(resolve => requestAnimationFrame(() => {
this.isContentActive = true
this.isContentActive = this.hasJustFocused = this.isActive
resolve()
}))
},
Expand Down

0 comments on commit 62ecb91

Please sign in to comment.