Skip to content

Tab groups can't be moved if a tab is in focus #1410

Description

@maddouri

Dockview version
7.0.2

Framework
React 19

Browser
Chrome 149

Describe the bug
If a tab is in focus, then the tab group cannot be moved if you try dragging it from its colored chip

Reproduction
Using the "Tab Groups" example:

  1. Click on the "Billing" tab to make it the focused tab
  2. Try moving the "Feature" tab group using its blue chip
  3. Notice how that triggers the drag&drop overlay as expected
  4. Return the "Feature" tab group to its initial location
  5. Click on the "Dashboard" tab (which is part of the "Feature" tab group) to make it the focused tab, or click on the "Billing" tab again
  6. Try moving the "Feature" tab group using its blue chip
  7. Notice how that doesn't trigger the drag&drop overlay and the group cannot be moved.
    Please see the video below for an illustration of the problem.

Also, please note that this above reproduction steps are not the only sequence of steps that can trigger the bug (they are just the most reliable sequence that I came up with while trying to reproduce the bug).

Expected behavior
Moving a tab group behaves like moving a simple tab

Screenshots / recordings

dockview-tab-groups-cant-be-moved-if-a-tab-is-in-focus.mp4

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedProcessed by the triage agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions