Skip to content

Commit 1469744

Browse files
authored
Merge pull request #181 from mawi1512/dev
chore: don't bind scroll event in non-virtual mode
2 parents 541668f + cda5ed3 commit 1469744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Tree/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export default defineComponent({
293293
'vjs-tree': true,
294294
'is-virtual': virtual,
295295
}}
296-
onScroll={onTreeScroll}
296+
onScroll={virtual ? onTreeScroll: undefined}
297297
>
298298
{virtual ? (
299299
<div style={{ height: `${height}px` }}>

0 commit comments

Comments
 (0)