Skip to content

Duplicate popouts when page is refreshed #851

@borglin

Description

@borglin

Describe the bug
When I refresh a page containing a dockview layout with an open popout window it will restore the open popout window and when the stored layout config is loaded it will open another popout window.

To Reproduce
I created a repo, https://github.com/borglin/dockview-popout-repro, based on an example from https://dockview.dev/docs/core/groups/popoutGroups/ as that example didn't seem to work.

Steps to reproduce the behavior:

  1. Run npm run vite and open http://localhost:5173/
  2. Click popout on one of the groups
  3. Click save
  4. Refresh page
  5. (Allow popups if blocked by browser and refresh again)
  6. Two popouts are now open

Expected behavior
The page refreshes and one copy of the popout is restored

Screenshots
Image

Desktop (please complete the following information):

  • OS [MacOS]
  • Browser [Chrome v132, Safari 18.1]
  • Version [3.0.2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions