mathuo 7397dde9b9
fix: move registerPanel after doAddGroup to prevent undefined API errors
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>
2025-10-30 22:09:24 +00:00
2025-07-25 22:37:25 +01:00
2025-09-09 23:14:06 +01:00
2024-03-11 21:54:30 +00:00
2025-07-29 23:03:48 +01:00
2021-10-04 20:22:05 +01:00
2020-11-15 16:05:51 +00:00
2025-07-29 22:54:09 +01:00
2023-10-01 21:53:59 +01:00
2020-09-20 20:00:31 +01:00
2020-09-20 21:52:26 +01:00
2025-08-02 14:37:29 +01:00
2023-10-22 15:48:28 +01:00
2023-10-22 15:48:28 +01:00
2025-09-22 22:21:08 +01:00
2021-03-14 16:27:18 +00:00
2025-09-09 23:14:06 +01:00
2025-01-27 22:35:43 +00:00
2025-08-29 20:12:43 +01:00
2023-05-16 21:28:02 +01:00
2024-07-09 21:16:59 +01:00
2020-09-24 23:01:48 +01:00

dockview

Zero dependency layout manager supporting tabs, groups, grids and splitviews. Supports React, Vue and Vanilla TypeScript


npm version npm CI Build Coverage Quality Gate Status Bundle Phobia

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.

Description
[MIRROR] Zero dependency Docking Layout Manager. Supports Vanilla TypeScript, React and Vue.
Readme MIT 330 MiB
Languages
TypeScript 85.5%
MDX 4.7%
JavaScript 3.6%
SCSS 2.8%
HTML 2.6%
Other 0.8%