You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an event firing that is needing to close certain panes in a tabgroup displayed in a dockmanager. I am finding the indexes of the panes to remove and splicing the panes area of the tabgroup. This does remove the tab (after I've switched to another tab, redraw issue below), but then I am no longer able to ever open this tab again. When the user clicks to open this tab, the route does route to the component and the constructor fires, but eventually I get a console error: ERROR TypeError: Cannot read properties of undefined (reading 'isPinned')
Also, I'm not seeing the changes in the browser. But if I click on another tab that is still open, then in switching to that tab, the tabs I closed earlier (but were still visible) do finally disappear. I've tried ChangeDetector markForCheck and detectChanges and also doing that inside a timeout, but nothing seems to work. Tab closing does work, if I click the x in the tab header, the tab closes. But for this current feature, I need a way to programmatically do it from behind scenes. For now, the only workaround I've found is that I need to fire router.navigateByUrl to launch a new link to get the current tabgroup to properly redraw without the closed tabs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an event firing that is needing to close certain panes in a tabgroup displayed in a dockmanager. I am finding the indexes of the panes to remove and splicing the panes area of the tabgroup. This does remove the tab (after I've switched to another tab, redraw issue below), but then I am no longer able to ever open this tab again. When the user clicks to open this tab, the route does route to the component and the constructor fires, but eventually I get a console error: ERROR TypeError: Cannot read properties of undefined (reading 'isPinned')
Also, I'm not seeing the changes in the browser. But if I click on another tab that is still open, then in switching to that tab, the tabs I closed earlier (but were still visible) do finally disappear. I've tried ChangeDetector markForCheck and detectChanges and also doing that inside a timeout, but nothing seems to work. Tab closing does work, if I click the x in the tab header, the tab closes. But for this current feature, I need a way to programmatically do it from behind scenes. For now, the only workaround I've found is that I need to fire router.navigateByUrl to launch a new link to get the current tabgroup to properly redraw without the closed tabs.
Beta Was this translation helpful? Give feedback.
All reactions