タイムラインの上に設置した投稿フォームでコンテキストメニューが表示できない問題を修正

This commit is contained in:
syuilo 2020-12-29 21:18:35 +09:00
parent 5679777010
commit b177b0cafc
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<div class="mk-app" :class="{ wallpaper }"> <div class="mk-app" :class="{ wallpaper }">
<XSidebar ref="nav" class="sidebar"/> <XSidebar ref="nav" class="sidebar"/>
<div class="contents" ref="contents" :class="{ withHeader: $store.state.titlebar }" @contextmenu.prevent.stop="onContextmenu"> <div class="contents" ref="contents" :class="{ withHeader: $store.state.titlebar }" @contextmenu.stop="onContextmenu">
<header v-if="$store.state.titlebar" class="header" ref="header" @click="onHeaderClick"> <header v-if="$store.state.titlebar" class="header" ref="header" @click="onHeaderClick">
<XHeader :info="pageInfo"/> <XHeader :info="pageInfo"/>
</header> </header>
@ -194,6 +194,7 @@ export default defineComponent({
}, },
onContextmenu(e) { onContextmenu(e) {
if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
const path = this.$route.path; const path = this.$route.path;
os.contextMenu([{ os.contextMenu([{
type: 'label', type: 'label',