mirror of
https://github.com/mathuo/dockview
synced 2025-12-05 13:52:04 +00:00
This fixes a timing issue where registerPanel was called before doAddGroup, causing "Cannot read properties of undefined (reading 'onDidFocusChange')" errors when adding panels with position references. The fix ensures the panel is fully integrated into the grid before registering event handlers, making the order consistent with the fromJSON method which also calls registerPanel after grid integration. Changes: - Move registerPanel call after doAddGroup in addPanel method - Add test to verify the fix and prevent regressions - Ensure API events are accessible immediately after panel creation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Merge branch 'master' of https://github.com/mathuo/dockview into 562-dockview-framework-wrappers-vuejs-angular-javascript-etc
dockview
Zero dependency layout manager supporting tabs, groups, grids and splitviews. Supports React, Vue and Vanilla TypeScript
Please see the website: https://dockview.dev
Features
- Serialization / deserialization with full layout management
- Support for split-views, grid-views and 'dockable' views
- Themeable and customizable
- Tab and Group docking / Drag n' Drop
- Popout Windows
- Floating Groups
- Extensive API
- Supports Shadow DOMs
- High test coverage
- Documentation website with live examples
- Transparent builds and Code Analysis
- Security at mind - verifed publishing and builds through GitHub Actions
Want to verify our builds? Go here.
Languages
TypeScript
85.5%
MDX
4.7%
JavaScript
3.6%
SCSS
2.8%
HTML
2.6%
Other
0.8%
