iTwin / iTwinUI

A design system for building beautiful and well-working web interfaces.
https://itwin.github.io/iTwinUI/
MIT License
107 stars 38 forks source link

Tree component - Scrolling to virtualized node #902

Open christophermlawson opened 2 years ago

christophermlawson commented 2 years ago

Feature

When the Tree component loads, a node may have been previously selected, in which case we scroll to make sure the node is visible in the tree. If the selected node has not been rendered due to virtualization (enableVirtualization prop), this scrolling does not work. Not sure if this is something that can addressed in the Tree or something we need to code around.

HaveSpacesuit commented 3 weeks ago

@mayank99 I've come across this issue as well. Is it planned for development?

mayank99 commented 3 weeks ago

@HaveSpacesuit It was planned, but never got picked up due to other priorities. The main blocker for development work is to find a better API than the one in Table — a prop is not the right abstraction for exposing what is supposed to be a function call.