close
Skip to content

BUG: @rc-component/tree@1.2.3 can't select tree node when virtual(height) enabled #1017

@thelostthing

Description

@thelostthing

Image

Reproduction:
Enable virtual, scroll down a bit then select a node, tree will auto scroll back to top, scroll down again then select the same node, now ok.

Code:
https://stackblitz.com/edit/vitejs-vite-jza1fbse?file=src%2FApp.tsx

affect Antd@6.3.1
Antd@6.2.1(@rc-component/tree@1.1.0) was ok

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions