@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
|
@@ -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)
|