mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 07:42:23 +00:00
fix(ui): enforce Context ownership before disclosure no-op
This commit is contained in:
1 parent
81eb44340d
commit
a4ce7381d8
1 file changed
+11
-7
+11
-7
@@ -474,6 +474,17 @@ export class PanelChrome {
|
|||||||
syncShare,
|
syncShare,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Parent ownership is an invariant even on a no-op disclosure request.
|
||||||
|
// A stale compact Radio disclosure is absolutely positioned outside the
|
||||||
|
// measured Context rail; clear it before returning from an already-open
|
||||||
|
// Context request so it cannot paint over the active Context body.
|
||||||
|
if (
|
||||||
|
!nextCollapsed &&
|
||||||
|
panelId === 'global-context-panel' &&
|
||||||
|
this._contextRadioDock?.classList.contains('disclosure-open')
|
||||||
|
) {
|
||||||
|
this._setRadioDisclosure?.(false);
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
panelEl.classList.contains('collapsed') === nextCollapsed &&
|
panelEl.classList.contains('collapsed') === nextCollapsed &&
|
||||||
!wasAutoCollapsed
|
!wasAutoCollapsed
|
||||||
@@ -502,13 +513,6 @@ export class PanelChrome {
|
|||||||
this.cockpitView.setContextCollapsed(true);
|
this.cockpitView.setContextCollapsed(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (
|
|
||||||
!nextCollapsed &&
|
|
||||||
panelId === 'global-context-panel' &&
|
|
||||||
this._contextRadioDock?.classList.contains('disclosure-open')
|
|
||||||
) {
|
|
||||||
this._setRadioDisclosure?.(false);
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
!nextCollapsed &&
|
!nextCollapsed &&
|
||||||
panelId === 'radio-panel' &&
|
panelId === 'radio-panel' &&
|
||||||
|
|||||||
Reference in new issue
Block a user