vuetify-multiple-draggable-dialogs
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "vuetify-multiple-draggable-dialogs", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A mixin that gives ability to have multiple active draggable dialogs", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -14,8 +14,12 @@ const container = {}; | ||
} | ||
// if must contain needed class | ||
if (!event.target.classList.contains('v-card__title')) { | ||
return; | ||
} | ||
return event.target.closest(dialogSelector); | ||
let dialog; | ||
// target must contain one of provided classes | ||
['v-card__title', 'v-toolbar__content', 'v-toolbar__title'].forEach((className) => { | ||
if (event.target.classList.contains(className)) { | ||
dialog = event.target.closest(dialogSelector); | ||
} | ||
}); | ||
return dialog | ||
} | ||
@@ -22,0 +26,0 @@ |
5887705
137