Merge pull request #2517 from melloware/PV2516
Fix #2516: Carousel less items than allocated slotspull/2561/head
commit
c10f6e0036
|
@ -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