Skip to content

Commit

Permalink
fix(VDialog): animate click outside with persistent prop
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Aug 15, 2019
1 parent f0f648c commit 652ba11
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/vuetify/src/components/VDialog/VDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,13 @@ export default baseMixins.extend({
// click is on the overlay, animate
this.$emit('click:outside')

if (this.persistent) {
if (!this.noClickAnimation &&
this.overlay === target
if (this.persistent && this.overlay) {
if (
!this.noClickAnimation &&
(
this.overlay.$el === target ||
this.overlay.$el.contains(target)
)
) this.animateClick()

return false
Expand Down

0 comments on commit 652ba11

Please sign in to comment.