Skip to content

Commit

Permalink
fix(stackable): move stack classes to explicit values
Browse files Browse the repository at this point in the history
fixes #5141
  • Loading branch information
johnleider committed Mar 10, 2019
1 parent 52ef1af commit 7dad5e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/vuetify/src/components/VDialog/VDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export default {
return {
animate: false,
animateTimeout: null,
stackClass: 'v-dialog__content--active',
stackMinZIndex: 200
}
},
Expand Down
1 change: 0 additions & 1 deletion packages/vuetify/src/mixins/menuable.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export default Vue.extend({
isContentActive: false,
pageWidth: 0,
pageYOffset: 0,
stackClass: 'v-menu__content--active',
stackMinZIndex: 6
}),

Expand Down
6 changes: 4 additions & 2 deletions packages/vuetify/src/mixins/stackable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default Vue.extend<options>().extend({

data () {
return {
stackClass: 'unpecified',
stackElement: null as Element | null,
stackExclude: null as Element[] | null,
stackMinZIndex: 0,
Expand Down Expand Up @@ -48,7 +47,10 @@ export default Vue.extend<options>().extend({
// Convert the NodeList to an array to
// prevent an Edge bug with Symbol.iterator
// https://github.com/vuetifyjs/vuetify/issues/2146
const activeElements = [...document.getElementsByClassName(this.stackClass)]
const activeElements = [
...document.getElementsByClassName('v-menu__content--active'),
...document.getElementsByClassName('v-dialog__content--active')
]

// Get z-index for all active dialogs
for (let index = 0; index < activeElements.length; index++) {
Expand Down

0 comments on commit 7dad5e9

Please sign in to comment.