Fix #2516: Carousel less items than allocated slots

pull/2517/head
melloware 2022-05-01 08:56:00 -04:00
parent 3542cd46a8
commit 83374cf5b1
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ export default {
},
computed: {
totalIndicators() {
return this.value ? Math.ceil((this.value.length - this.d_numVisible) / this.d_numScroll) + 1 : 0;
return this.value ? Math.max(Math.ceil((this.value.length - this.d_numVisible) / this.d_numScroll) + 1, 0) : 0;
},
backwardIsDisabled() {
return (this.value && (!this.circular || this.value.length < this.d_numVisible) && this.d_page === 0);