File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/vue-virtual-scroller/src/components Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ export default {
355355
356356 updateVisibleItems (checkItem , checkPositionDiff = false ) {
357357 const itemSize = this .itemSize
358- const gridItems = this .gridItems
358+ const gridItems = this .gridItems || 1
359359 const itemSecondarySize = this .itemSecondarySize || itemSize
360360 const minItemSize = this .$_computedMinItemSize
361361 const typeField = this .typeField
@@ -654,9 +654,11 @@ export default {
654654
655655 addListeners () {
656656 this .listenerTarget = this .getListenerTarget ()
657- this .listenerTarget .addEventListener (' scroll' , this .handleScroll , supportsPassive ? {
658- passive: true ,
659- } : false )
657+ this .listenerTarget .addEventListener (' scroll' , this .handleScroll , supportsPassive
658+ ? {
659+ passive: true ,
660+ }
661+ : false )
660662 this .listenerTarget .addEventListener (' resize' , this .handleResize )
661663 },
662664
You can’t perform that action at this time.
0 commit comments