1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 16:28:12 +09:00

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

This commit is contained in:
syuilo 2020-12-29 21:18:35 +09:00
parent 5679777010
commit b177b0cafc

View File

@ -2,7 +2,7 @@
<div class="mk-app" :class="{ wallpaper }">
<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">
<XHeader :info="pageInfo"/>
</header>
@ -194,6 +194,7 @@ export default defineComponent({
},
onContextmenu(e) {
if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
const path = this.$route.path;
os.contextMenu([{
type: 'label',