fix: Fixes Back and Navigation buttons not working on mobile view when panels explicitly collapsed (#2926)

This commit is contained in:
Antonella Sgarlatta
2025-08-05 10:31:48 -03:00
committed by GitHub
parent 2b41c8337b
commit 010864881d

View File

@@ -213,11 +213,15 @@ export class PaneController extends AbstractViewController implements InternalEv
const panes = this._panesForLayout.execute(layout).getValue() const panes = this._panesForLayout.execute(layout).getValue()
if (panes.includes(AppPaneId.Items) && this.listPaneExplicitelyCollapsed) { if (panes.includes(AppPaneId.Items) && this.listPaneExplicitelyCollapsed && layout !== PaneLayout.ItemSelection) {
removeFromArray(panes, AppPaneId.Items) removeFromArray(panes, AppPaneId.Items)
} }
if (panes.includes(AppPaneId.Navigation) && this.navigationPaneExplicitelyCollapsed) { if (
panes.includes(AppPaneId.Navigation) &&
this.navigationPaneExplicitelyCollapsed &&
layout !== PaneLayout.TagSelection
) {
removeFromArray(panes, AppPaneId.Navigation) removeFromArray(panes, AppPaneId.Navigation)
} }