fix(core): should not close peek view when clicking at menu items (#11344)
fix AF-2329
This commit is contained in:
@@ -304,6 +304,11 @@ export class LinkedDocPopover extends SignalWatcher(
|
|||||||
data-id=${key}
|
data-id=${key}
|
||||||
.text=${name}
|
.text=${name}
|
||||||
hover=${this._activatedItemKey === key}
|
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=${() => {
|
@click=${() => {
|
||||||
action()?.catch(console.error);
|
action()?.catch(console.error);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user