Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird scrollbar behaviour for sl-tree #2153

Open
steunix opened this issue Aug 27, 2024 · 1 comment
Open

Weird scrollbar behaviour for sl-tree #2153

steunix opened this issue Aug 27, 2024 · 1 comment
Labels
bug Things that aren't working right in the library.

Comments

@steunix
Copy link

steunix commented Aug 27, 2024

Describe the bug

I have an sl-tree inside a flex div container and a fixed-height. When it's first presented, everything works fine. When you start expanding some subitems, the scrollbar starts to behave weird: you cannot drag the thumb anymore, and if you try page up/down by clicking on the track the thumb moves "randomly", especially if you click one time the track below the thumb.

Not sure if this is due to Shoelace itself...

To Reproduce

See codepen below.

Demo

CodePen here

Browser / OS

  • OS: Windows
  • Browser: Chrome
  • Browser version: 128
@steunix steunix added the bug Things that aren't working right in the library. label Aug 27, 2024
@shoelace-style shoelace-style deleted a comment Aug 27, 2024
@akasht2509
Copy link

try to add overflow to <sl-tree>
.tree-overflow {
  max-height: 350px; 
  overflow-y: auto;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants