Skip to content

Calling panel.api.close() and then calling addPanel({ ... }) to restore the panel display does not work. #1300

@gcokee

Description

@gcokee

Dockview version
5.2.0

Framework
Vue 3

Browser
electron 29.2.0

Describe the bug
Setting renderer: "always" in addPanel and then calling panel.api.close() followed by addPanel({ ... }) to add the closed panel results in an error. Setting renderer: "onlyWhenVisible" and then calling panel.api.close() followed by addPanel({ ... }) to add the closed panel again results in the tabComponent not being rendered.

Reproduction

If a sandbox isn't possible, provide steps to reproduce:

  1. Go to '...'
  2. Click on '...'
  3. See error

Expected behavior
What you expected to happen.

Screenshots / recordings
If applicable, add screenshots or screen recordings.

Additional context
Any other relevant context (error messages, stack traces, related issues).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions