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 @@ -260,7 +260,8 @@ const toggleComponent = (dockview, options) => {
260260 if ( pan === void 0 ) {
261261 item . group . delPanelIndex = item . group . panels . findIndex ( p => p . params . key == item . params . key ) ;
262262 const group = item . group ;
263- const noFiring = ! optionsPanels . some ( p => p . params . key == item . params . key || p . id == item . id || p . title == item . title ) ;
263+ const localKeys = [ ...localPanels . map ( p => p . params . key ) , ...dockview . params . panels . map ( p => p . params . key ) ]
264+ const noFiring = ! ( optionsPanels . length === localKeys . length && localKeys . every ( key => optionsPanels . some ( optionsPanel => optionsPanel . params . key === key ) ) ) ;
264265 dockview . removePanel ( item , noFiring )
265266 if ( group . panels . length === 0 ) {
266267 dockview . setVisible ( group , false )
You can’t perform that action at this time.
0 commit comments