Skip to content

fix(dockview-core): allow tab group chip drop on own group's edge (#1…#1248

Merged
mathuo merged 1 commit intomasterfrom
fix/1242-tab-group-chip-edge-drop
May 8, 2026
Merged

fix(dockview-core): allow tab group chip drop on own group's edge (#1…#1248
mathuo merged 1 commit intomasterfrom
fix/1242-tab-group-chip-edge-drop

Conversation

@mathuo
Copy link
Copy Markdown
Owner

@mathuo mathuo commented May 8, 2026

…242)

The drop handler short-circuited any drop where panelId is null on the same group, which silently swallowed tab-group chip drops because they also have panelId === null (with tabGroupId set). Narrow the guard so only true full-group drags are blocked. Also fix moveTabGroupToGroup so an edge drop onto the source group cleans up the source when it becomes empty by comparing against the actual targetGroup (which may be a freshly created edge group) rather than the originally passed destinationGroup.

Description

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / cleanup
  • Build / CI / tooling

Affected packages

  • dockview-core
  • dockview (vanilla JS)
  • dockview-react
  • dockview-vue
  • dockview-angular
  • docs

How to test

Checklist

  • yarn lint:fix passes
  • yarn format passes
  • npm run gen has been run and generated files are up to date
  • yarn test passes
  • I have added or updated tests where applicable
  • Breaking changes are documented

)

The drop handler short-circuited any drop where panelId is null on the
same group, which silently swallowed tab-group chip drops because they
also have panelId === null (with tabGroupId set). Narrow the guard so
only true full-group drags are blocked. Also fix moveTabGroupToGroup so
an edge drop onto the source group cleans up the source when it becomes
empty by comparing against the actual targetGroup (which may be a
freshly created edge group) rather than the originally passed
destinationGroup.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@mathuo mathuo merged commit 23e5a6b into master May 8, 2026
9 checks passed
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

Successfully merging this pull request may close these issues.

Tab groups can't be moved to a new location / Moving a tab group using its colored chip doesn't update the layout

1 participant