Skip to content

Commit

Permalink
fix(VDialog): check if scrolling element parentNode exists
Browse files Browse the repository at this point in the history
fixes #15977
  • Loading branch information
KaelWD committed Apr 28, 2023
1 parent 537d67d commit e148110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/mixins/overlayable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default Vue.extend<Vue & Toggleable & Stackable & options>().extend({

if (!alreadyAtStart && scrollingUp) return true
if (!alreadyAtEnd && scrollingDown) return true
if ((alreadyAtStart || alreadyAtEnd)) {
if ((alreadyAtStart || alreadyAtEnd) && el.parentNode) {
return this.shouldScroll(el.parentNode as Element, e)
}

Expand Down

0 comments on commit e148110

Please sign in to comment.