fix(core): should not close peek view when clicking at menu items (#11344)

fix AF-2329
This commit is contained in:
pengx17
2025-04-01 07:00:04 +00:00
parent b785b7e8e5
commit d96f00925c
@@ -304,6 +304,11 @@ export class LinkedDocPopover extends SignalWatcher(
data-id=${key}
.text=${name}
hover=${this._activatedItemKey === key}
@pointerdown=${(e: PointerEvent) => {
// Prevent event listeners being registered on the root document
// eg., radix-ui dialogs usePointerDownOutside hooks
e.stopPropagation();
}}
@click=${() => {
action()?.catch(console.error);
}}