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

Examples on website are broken #206

Closed
timdown opened this issue Nov 13, 2023 · 7 comments
Closed

Examples on website are broken #206

timdown opened this issue Nov 13, 2023 · 7 comments
Assignees

Comments

@timdown
Copy link

timdown commented Nov 13, 2023

Firstly, thanks for finishing the pixel size work, which looks promising. However, I think there are some rough edges in 0.0.56. I've noticed the following problems with the examples on the website, some of which I've also seen on the application I'm working on:

  • All pages: resizing seems to snap only to the maximum or minimum size (at least in most cases)
  • Collapsible panels: the resizer seems to be stuck on the right-hand side
  • Pixel-based layouts: resizers have no effect

Additionally, there's an error when calling expand() or collapse() on a panel via the imperative API in an effect that runs after first render:

https://codesandbox.io/s/lively-surf-jq5pzc?file=/src/App.js

@bvaughn
Copy link
Owner

bvaughn commented Nov 13, 2023

Oh that's embarrassing. I probably broke something by making a last minute change yesterday for the e2e test. 🤡

Interestingly, the bug doesn't repro locally (localhost running the latest version of main).

I'll add comments to those Replays to see if I can spot the difference.

@bvaughn
Copy link
Owner

bvaughn commented Nov 13, 2023

Ah! The problem is that I'm rendering the data-panel-group-id attribute conditionally (dev only) for PanelGroup. Wow what an oversight.

@bvaughn
Copy link
Owner

bvaughn commented Nov 13, 2023

Thanks so much for reporting this issue. I think it's been fixed in 0.0.57. (There may be other regressions related to the large rewrite, but at least the one you reported has been resolved.)


❤️ → ☕ givebrian.coffee

@timdown
Copy link
Author

timdown commented Nov 13, 2023

Ah! The problem is that I'm rendering the data-panel-group-id attribute conditionally (dev only) for PanelGroup. Wow what an oversight.

Hey, we've all done that kind of thing 😄 Thanks for fixing it so quickly. I'll let you know if I find anything else.

@bvaughn
Copy link
Owner

bvaughn commented Nov 14, 2023

Thanks!

@timdown
Copy link
Author

timdown commented Nov 14, 2023

I'm still seeing the expand()/collapse() issue: https://codesandbox.io/s/gracious-cannon-h5stq4. I guess it's a slightly odd thing to be expanding or collapsing a panel straight after the initial render, but it worked in previous versions.

@bvaughn
Copy link
Owner

bvaughn commented Nov 14, 2023

I've filed a new issue for that (#211)

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