From 10378473cc68172b424ac63caa74bd3bc99065b5 Mon Sep 17 00:00:00 2001 From: jcollier Date: Tue, 24 Oct 2023 12:17:32 -0400 Subject: [PATCH] fix(carousel): page attribute not updating shown items --- components/lib/carousel/Carousel.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/lib/carousel/Carousel.vue b/components/lib/carousel/Carousel.vue index cd189b170..0a8f782c5 100755 --- a/components/lib/carousel/Carousel.vue +++ b/components/lib/carousel/Carousel.vue @@ -126,6 +126,12 @@ export default { }, watch: { page(newValue) { + if (newValue > this.d_page) { + this.navForward({}, newValue); + } else if (newValue < this.d_page) { + this.navBackward({}, newValue); + } + this.d_page = newValue; }, circular(newValue) {