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

Splitter - crash reading from undefined context when one panel is sufficiently small #2967

Closed
1 of 3 tasks
Jdyn opened this issue Oct 9, 2024 · 1 comment
Closed
1 of 3 tasks

Comments

@Jdyn
Copy link

Jdyn commented Oct 9, 2024

Description

Context becomes undefined after a splitter panel ignores a change in the size prop. Notice in the video there is a minSize on panel b but I am able to resize to zero. This seems to only happen when the panel size is set to be small.

I believe this is the same core issue as #2602.

Note in the video, I should not be able to even drag the panel to zero, since I had just set minSize.

Link to Reproduction (or Detailed Explanation)

CleanShot.2024-10-08.at.19.15.14.mp4

Steps to Reproduce

  1. set two panels, panel a size 100, and panel b size 0
  2. resize the panels programmatically, using the size prop (or using setSize I believe)
  3. the new size will be set, but b that was size 0 does not get the updated size
  4. resize b to be zero using the resize trigger, it ignore the size prop
  5. Try to access the splitter context and it is undefined

Ark UI Version

4.0.0

Framework

  • React
  • Solid
  • Vue

Browser

Chrome, Edge

Additional Information

sentry log

CleanShot 2024-10-08 at 19 23 50@2x

@segunadebayo
Copy link
Member

segunadebayo commented Oct 9, 2024

Hey. Thanks for the detailed report.

Since it’s a duplicate of that issue. I’ll close this and fix them both shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants