ant-design/ant-design

Animate Tree subnodes on select

Open

#48,710 opened on Apr 30, 2024

View on GitHub
 (3 comments) (1 reaction) (0 assignees)TypeScript (54,612 forks)batch import
Inactivehelp wanted🐛 Bug

Repository metrics

Stars
 (98,031 stars)
PR merge metrics
 (Avg merge 3d 4h) (248 merged PRs in 30d)

Description

What problem does this feature solve?

Currently, when the user selects a Tree Node that has sub-nodes and we want those sub-nodes to expand, they are expanded without animation. While expanding/collapsing a parent Node has animation.

What does the proposed API look like?

Maybe introduce a new bool prop animateOnSelect or something.

Contributor guide