mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 01:13:08 +02:00
タイムラインの上に設置した投稿フォームでコンテキストメニューが表示できない問題を修正
This commit is contained in:
parent
5679777010
commit
b177b0cafc
1 changed files with 2 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue