primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Tree: Expanding a node scrolls to incorrect position when using Virtual Scroll

Open LennartMart opened this issue 10 months ago • 0 comments

Describe the bug

When using VirtualScroller, expanding a node scrolls to the wrong position in the tree. It's also broken on the documentation page: https://primeng.org/tree#preload .

Environment

17.14.1

Reproducer

https://stackblitz.com/edit/2uz5xq?file=package.json

Angular version

17.3.1

PrimeNG version

17.4.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.18.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Scroll down in the tree
  2. Choose a node that wasn't initially visible
  3. Expand the node
  4. The tree will scroll upwards, the expanded node is out of sight.

Expected behavior

The expanded node should stay visible.

LennartMart avatar Apr 22 '24 17:04 LennartMart