IgniteUI / igniteui-dockmanager

Ignite UI Dock Manager Web Component provides means to manage the layout of your application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DockManager removePane method does not remove pane from UI when complete

IGvaleries opened this issue · comments

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

@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 };