-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
fix: resize should not fail when dragState
is null
#224
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I have to agree that guarding against nullish |
692ca08
to
71a8cb2
Compare
initialDragState
when it's nulldragState
is null
@bvaughn I've managed to reproduce the issue 2 times out of ~100, so it's quite rare. Both times it happened during dragging the panel to collapsed state. The attempt of resize while My mental picture of this is that when resize handle gets released and cursor is moved at the same time, sometimes the |
Interesting. Would be super nice to capture a case of this happening in Replay. |
Cherry picking this change into my release branch caused 11 e2e tests to fail (same as with CI). This highlights that there are several triggers for resize actions, and drag is only one of them. This change would effectively block keyboard and imperative API resizes. I will think on this change some more before the v1 release but we can't land the thing proposed here. Edit ddb4a52 |
Checklist: - [x] Remove pixel size constraints - [x] Replaced `dataAttributes` prop with ...rest (to support all HTMLAttributes) - [x] Review and pull in changes from open PRs: - [x] #228 - [x] #224 - [x] Audit open issues and close ones that are no longer releveant - [x] Remove any unnecessary async initialization logic necessitated by pixel constraints I think this library's feature set is stable enough in my mind for a 1.0 release. It might be controversial but I have decided to cut pixel-based constraints from that release as they added too much complexity to the initialization and validation logic. --------- Co-authored-by: Timur Sufiev <[email protected]>
Resolves #223