Skip to content

Commit

Permalink
default on click fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed May 31, 2024
1 parent 7f620ce commit 4c75cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basic/InlinePopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ document.body.addEventListener("click", (e) => {
}

const node = popupFactory(data);

app.runAsync(() => InlinePopup.show(target, node, { alignment }));
const defaultOnClick = target.getAttribute("data-default-on-click") as any;
app.runAsync(() => InlinePopup.show(target, node, { alignment, defaultOnClick }));

});

Expand Down

0 comments on commit 4c75cb9

Please sign in to comment.