Skip to content

Commit fbbec8a

Browse files
committed
one fix
1 parent 61610b3 commit fbbec8a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/mdui-admin/src/components/mdui-popup.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export class PopupContainer extends JSXElement {
6565
get source() { return this.props.source; }
6666

6767
protected render(): JSX.Node {
68-
this.useEventListener(this, "cancel", this.props.oncancel);
69-
this.useEventListener(this, "popup-layout", (e) => {
68+
this.useEventListener(this)("cancel", this.props.oncancel);
69+
this.useEventListener(this)("popup-layout", (e) => {
7070

7171
const detail = card.current;
7272
if (!is<HTMLDivElement>(detail, detail?.nodeName === "DIV")) return;
@@ -87,10 +87,10 @@ export class PopupContainer extends JSXElement {
8787

8888
});
8989

90-
this.useEventListener(this, "pointerdown", this.onClickBackground);
91-
this.useEventListener(this, "pointerup", this.onClickBackground);
90+
this.useEventListener(this)("pointerdown", this.onClickBackground);
91+
this.useEventListener(this)("pointerup", this.onClickBackground);
9292
(["click", "pointerdown", "pointerup", "input", "change", "cancel", "focus", "blur"] as const).forEach(e => {
93-
this.useEventListener(this.shadowRoot!, e, this.stopPropagation);
93+
this.useEventListener(this.shadowRoot!)(e, this.stopPropagation);
9494
});
9595
const card = createHybridRef<HTMLElement>();
9696

0 commit comments

Comments
 (0)