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 #2966

Closed
1 of 3 tasks
Jdyn opened this issue Oct 9, 2024 · 0 comments
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.

Link to Reproduction (or Detailed Explanation)

This is the same core issue as #2602

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

No response

@Jdyn Jdyn closed this as completed Oct 9, 2024
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

1 participant