File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.DockView/wwwroot/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ const onRemovePanel = event => {
6565const appendTemplatePanelEle = ( panel ) => {
6666 const dockview = panel . accessor
6767 if ( panel . view . content . element ) {
68- if ( panel . titleMenuEle ) {
69- panel . view . content . element . append ( panel . titleMenuEle )
70- }
68+ // if (panel.titleMenuEle) {
69+ // panel.view.content.element.append(panel.titleMenuEle)
70+ // }
7171 if ( dockview . params . template ) {
7272 dockview . params . template . append ( panel . view . content . element )
7373 }
@@ -103,6 +103,7 @@ const updateTitle = panel => {
103103 if ( titleBarElement ) {
104104 titleBarElement . removeAttribute ( 'title' ) ;
105105 tabEle . insertAdjacentElement ( "afterbegin" , titleBarElement ) ;
106+ panel . titleMenuEle = titleBarElement ;
106107 }
107108 }
108109}
You can’t perform that action at this time.
0 commit comments