Fix #2516: Carousel less items than allocated slots
parent
3542cd46a8
commit
83374cf5b1
|
@ -477,7 +477,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
totalIndicators() {
|
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() {
|
backwardIsDisabled() {
|
||||||
return (this.value && (!this.circular || this.value.length < this.d_numVisible) && this.d_page === 0);
|
return (this.value && (!this.circular || this.value.length < this.d_numVisible) && this.d_page === 0);
|
||||||
|
|
Loading…
Reference in New Issue