From 805d3e08a8062c961b4cdd47e25e87fd1b40156d Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 26 Mar 2020 07:27:12 +0300 Subject: [PATCH] :bug: remove unneeded $el for list $ref (#92) --- src/InnerSlider.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/InnerSlider.vue b/src/InnerSlider.vue index bbc6183..2bfff43 100644 --- a/src/InnerSlider.vue +++ b/src/InnerSlider.vue @@ -106,7 +106,7 @@ export default { }) this.ro.observe(this.$refs.list) Array.prototype.forEach.call( - this.$refs.list.$el.querySelectorAll('.slick-slide'), + this.$refs.list.querySelectorAll('.slick-slide'), slide => { slide.onfocus = this.pauseOnFocus ? this.onSlideFocus : null slide.onblur = this.pauseOnFocus ? this.onSlideBlur : null @@ -335,7 +335,7 @@ export default { this.animationEndCallback = undefined }, checkImagesLoad() { - let images = this.$refs.list.$el.querySelectorAll('.slick-slide img') + let images = this.$refs.list.querySelectorAll('.slick-slide img') let imagesCount = images.length, loadedCount = 0 Array.prototype.forEach.call(images, image => {