#6776 fix: Virtual scroller: step prop in delay mode breaks the component
closes #6776pull/6862/head
parent
999bb5066c
commit
ea211d63ec
|
@ -621,7 +621,7 @@ export default {
|
|||
return Math.floor(((first ?? this.first) + this.d_numToleratedItems * 4) / (this.step || 1));
|
||||
},
|
||||
isPageChanged(first) {
|
||||
return this.step ? this.page !== this.getPageByFirst(first ?? this.first) : true;
|
||||
return this.step && !this.lazy ? this.page !== this.getPageByFirst(first ?? this.first) : true;
|
||||
},
|
||||
setContentEl(el) {
|
||||
this.content = el || this.content || findSingle(this.element, '[data-pc-section="content"]');
|
||||
|
|
Loading…
Reference in New Issue