IgniteUI / igniteui-dockmanager

Ignite UI Dock Manager Web Component provides means to manage the layout of your application.
Other
38 stars 0 forks source link

DockManager removePane method does not remove pane from UI when complete #63

Closed IGvaleries closed 1 year ago

IGvaleries commented 1 year ago

Description

The removepane method of the Dockmanager should remove the pane from the UI without needing the user to interact again with the UI.

Steps to reproduce

  1. goto https://codesandbox.io/s/competent-tom-9xq1gf?file=/src/index.ts
  2. click remove Pane button

Result

Content Pane 1 is still visible in the UI and will only be removed once the UI is interacted with, for example click the Document2 tab

Expected result

Content Pane 1 is removed from the UI once the method completes

mtsvyatkova commented 1 year ago

@IGvaleries,

Removing a pane from the layout will only update the layout object. To trigger the dock manager update the whole layout should be replaced:

this.dockManager.layout = { ...this.dockManager.layout };