1 parent 7ec1783 commit 2290364Copy full SHA for 2290364
1 file changed
src/utils/menu.js
@@ -61,9 +61,15 @@ const menu = (() => {
61
});
62
}
63
if (data.note) {
64
- const note = typeof data.note === 'function' ? data.note() : data.note;
65
- if (note) {
66
- button.hover(hover.show(note));
+ if (typeof data.note === 'function') {
+ button.hover((e) => {
+ const note = data.note();
67
+ if (note) {
68
+ hover.show(note)(e);
69
+ }
70
+ }, hover.close);
71
+ } else {
72
+ button.hover(hover.show(data.note));
73
74
75
body.append(button);
0 commit comments