Merge pull request #4685 from autoboxer/issue-4684

fix(carousel): page attribute not updating shown items
pull/4694/head
Tuğçe Küçükoğlu 2023-10-25 12:01:59 +03:00 committed by GitHub
commit e2d43eb803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,12 @@ export default {
}, },
watch: { watch: {
page(newValue) { page(newValue) {
if (newValue > this.d_page) {
this.navForward({}, newValue);
} else if (newValue < this.d_page) {
this.navBackward({}, newValue);
}
this.d_page = newValue; this.d_page = newValue;
}, },
circular(newValue) { circular(newValue) {