Skip to content

Commit

Permalink
fix(VSlideGroup): skip width update if destroyed
Browse files Browse the repository at this point in the history
fixes #14470
  • Loading branch information
KaelWD committed Dec 14, 2021
1 parent 78b65a1 commit 1bb1455
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vuetify/src/components/VSlideGroup/VSlideGroup.ts
Expand Up @@ -475,8 +475,10 @@ export const BaseSlideGroup = mixins<options &
wrapper: this.$refs.wrapper ? this.$refs.wrapper.clientWidth : 0,
}, this.$vuetify.rtl, this.scrollOffset)
},
setWidths /* istanbul ignore next */ () {
setWidths () {
window.requestAnimationFrame(() => {
if (this._isDestroyed) return

const { content, wrapper } = this.$refs

this.widths = {
Expand Down

0 comments on commit 1bb1455

Please sign in to comment.