dockview
dockview copied to clipboard
fix: resolve IndexOutOfBounds and incorrect ordering when dragging po…
…pout panels
Fixes GitHub issue #1004 where dragging single panels from popout windows back into the dock caused IndexOutOfBounds errors and incorrect positioning.
Changes:
- Replace error-throwing bounds check with index clamping in tabs.ts
- Add special validation for popout panel drops in dockviewComponent.ts
- Ensure calculated drop indices are within valid bounds for destination groups
🤖 Generated with Claude Code
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit eda3afa3b387fae856ae611163083f3d176f77e8:
| Sandbox | Source |
|---|---|
| externaldnd-dockview | Configuration |
| fullwidthtab-dockview | Configuration |
| iframe-dockview | Configuration |
| keyboard-dockview | Configuration |
| nativeapp-dockview | Configuration |
| rendering-dockview | Configuration |