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
- goto https://codesandbox.io/s/competent-tom-9xq1gf?file=/src/index.ts
- 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
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 };