@reflagged/shell 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reflagged/shell",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Shared app shell for Reflagged services — OIDC auth, SSO, app switcher",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -186,6 +186,9 @@ export function BrandSwitcher() {
186
186
  useEffect(() => {
187
187
  const onKeyDown = (e: KeyboardEvent) => {
188
188
  if (!isPaletteShortcut(e)) return
189
+ // Apps mount the switcher twice (mobile header, desktop sidebar) and hide
190
+ // one with CSS; only the visible one answers, or both palettes open.
191
+ if (!triggerRef.current?.getClientRects().length) return
189
192
  e.preventDefault()
190
193
  place()
191
194
  setOpen((v) => !v)