diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2022-01-21 21:32:50 +0900 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2022-01-21 21:32:50 +0900 |
| commit | b5a20494f6032f840475bb69c79ccc2ffac11b7c (patch) | |
| tree | 9da47076c540446cf818f456eca697d423fd5ef4 /packages/client/src/components/note.vue | |
| parent | Merge branch 'develop' into pizzax-indexeddb (diff) | |
| parent | chore(client): add #misskey button (diff) | |
| download | misskey-b5a20494f6032f840475bb69c79ccc2ffac11b7c.tar.gz misskey-b5a20494f6032f840475bb69c79ccc2ffac11b7c.tar.bz2 misskey-b5a20494f6032f840475bb69c79ccc2ffac11b7c.zip | |
Merge branch 'develop' into pizzax-indexeddb
Diffstat (limited to 'packages/client/src/components/note.vue')
| -rw-r--r-- | packages/client/src/components/note.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index b309afe051..fc89c2777b 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -211,21 +211,21 @@ function undoReact(note): void { }); } -function onContextmenu(e): void { +function onContextmenu(ev: MouseEvent): void { const isLink = (el: HTMLElement) => { if (el.tagName === 'A') return true; if (el.parentElement) { return isLink(el.parentElement); } }; - if (isLink(e.target)) return; + if (isLink(ev.target)) return; if (window.getSelection().toString() !== '') return; if (defaultStore.state.useReactionPickerForContextMenu) { - e.preventDefault(); + ev.preventDefault(); react(); } else { - os.contextMenu(getNoteMenu({ note: props.note, translating, translation, menuButton }), e).then(focus); + os.contextMenu(getNoteMenu({ note: props.note, translating, translation, menuButton }), ev).then(focus); } } |