Skip to content

Commit 864b87e

Browse files
authored
fix: consider virtualScroll option to really disable Virtual Scroll (#438)
1 parent 8a8d1d1 commit 864b87e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/multiple-select-vanilla/src/MultipleSelectInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ export class MultipleSelectInstance {
492492
offset = -1;
493493
}
494494

495-
if (rows.length > Constants.BLOCK_ROWS * Constants.CLUSTER_BLOCKS) {
495+
if (this.options.virtualScroll && rows.length > Constants.BLOCK_ROWS * Constants.CLUSTER_BLOCKS) {
496496
const dropVisible = this.dropElm && this.dropElm?.style.display !== 'none';
497497
if (!dropVisible && this.dropElm) {
498498
this.dropElm.style.left = '-10000';

0 commit comments

Comments
 (0)