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 {
355
355
356
356
updateVisibleItems (checkItem , checkPositionDiff = false ) {
357
357
const itemSize = this .itemSize
358
- const gridItems = this .gridItems
358
+ const gridItems = this .gridItems || 1
359
359
const itemSecondarySize = this .itemSecondarySize || itemSize
360
360
const minItemSize = this .$_computedMinItemSize
361
361
const typeField = this .typeField
@@ -654,9 +654,11 @@ export default {
654
654
655
655
addListeners () {
656
656
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 )
660
662
this .listenerTarget .addEventListener (' resize' , this .handleResize )
661
663
},
662
664
You can’t perform that action at this time.
0 commit comments