Adds clipped class to html root when opening full screen modal.
This commit is contained in:
parent
e8f7ec2aad
commit
9cd369653b
|
@ -554,11 +554,16 @@ export default {
|
||||||
this.$refs.mySwiper.swiper.initialSlide = this.slideIndex;
|
this.$refs.mySwiper.swiper.initialSlide = this.slideIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adds clipped class to root html
|
||||||
|
document.documentElement.classList.add('is-clipped');
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
clearInterval(this.intervalId);
|
clearInterval(this.intervalId);
|
||||||
if (this.$refs.mySwiper.swiper)
|
if (this.$refs.mySwiper.swiper)
|
||||||
this.$refs.mySwiper.swiper.destroy();
|
this.$refs.mySwiper.swiper.destroy();
|
||||||
|
|
||||||
|
// Remove clipped class from root html
|
||||||
|
document.documentElement.classList.remove('is-clipped');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue