-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Splitter: Changed behavior in 8.x, when more than two panels are are used #2830
Comments
Your code sandbox reproducer looks like its the default and not showing the issue? |
Also the Showcase on 8.0.1 has 3 splitters in the bottom example and appears to be working OK? |
I'm sorry about the link - it was unsaved: the example in the showcase uses a nested splitter, not three panels within one splitter container. Nesting works in 8.0.1, but it is not an elegant solution in case you have three panels with same level of importance. |
yep i see the problem now! |
OK I pushed a PR to fix it. |
Thanks for the excellent report! |
Describe the bug
In 7.x, it was possible to have more than two panels in a Splitter.
In 8.0.1, when three panels are used, grabbing the split between panels 1 and 2 actually moves the split between panels 2 and 3, and it is no longer possible to resize the first panel.
Reproducer
https://codesandbox.io/s/primereact-test-forked-ny8eo9
PrimeReact version
8.0.1
React version
18.x
Language
ES6
Build / Runtime
Create React App (CRA)
Browser(s)
Chrome 101.0.4951.41 (Official Build) (64-bit) Linux
Steps to reproduce the behavior
Expected behavior
No response
The text was updated successfully, but these errors were encountered: