Skip to content

Commit

Permalink
feat(VSnackbar): keep snackbar open while mouseover (#12599)
Browse files Browse the repository at this point in the history
resolves #12494
  • Loading branch information
jacekkarczmarczyk committed Nov 16, 2020
1 parent e1720a8 commit 8808d98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/pages/en/components/snackbars.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
meta:
title: Snackbar component
description: The snackbar component informs user of a process that your application has performed is will perform. It can be temporary and often contains actions.
description: The snackbar component informs user of a process that your application has performed is will perform. It can be temporary and often contains actions. Timer will stop when user hovers over the snackbar.
keywords: snackbars, vuetify snackbar component, vue snackbar component
related:
- /components/buttons/
Expand Down
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VSnackbar/VSnackbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ export default mixins(
name: 'show',
value: this.isActive,
}],
on: {
mouseenter: () => window.clearTimeout(this.activeTimeout),
mouseleave: this.setTimeout,
},
})

return this.$createElement('div', data, [
Expand Down

0 comments on commit 8808d98

Please sign in to comment.