diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-13 13:05:20 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-13 13:05:20 +0900 |
| commit | dfe10ac61f989d0b96915f870793b3066b7e1661 (patch) | |
| tree | c5913f3e0fe13bfaa06189e6510be7fb9191e774 /src/client/components/ui/modal.vue | |
| parent | gulp refactor (diff) | |
| download | misskey-dfe10ac61f989d0b96915f870793b3066b7e1661.tar.gz misskey-dfe10ac61f989d0b96915f870793b3066b7e1661.tar.bz2 misskey-dfe10ac61f989d0b96915f870793b3066b7e1661.zip | |
Improve usability
Diffstat (limited to 'src/client/components/ui/modal.vue')
| -rw-r--r-- | src/client/components/ui/modal.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/components/ui/modal.vue b/src/client/components/ui/modal.vue index ff5b98d39f..db6564bacc 100644 --- a/src/client/components/ui/modal.vue +++ b/src/client/components/ui/modal.vue @@ -1,7 +1,7 @@ <template> <transition :name="$store.state.animation ? popup ? 'modal-popup' : 'modal' : ''" appear @after-leave="onClosed" @enter="$emit('opening')" @after-enter="childRendered"> <div v-show="manualShowing != null ? manualShowing : showing" class="mk-modal" v-hotkey.global="keymap" :style="{ pointerEvents: (manualShowing != null ? manualShowing : showing) ? 'auto' : 'none', '--transformOrigin': transformOrigin }"> - <div class="bg _modalBg" @click="onBgClick"></div> + <div class="bg _modalBg" @click="onBgClick" @contextmenu.prevent.stop="() => {}"></div> <div class="content" :class="{ popup, fixed, top: position === 'top' }" @click.self="onBgClick" ref="content"> <slot></slot> </div> |