This commit is contained in:
syuilo
2021-04-24 22:36:28 +09:00
parent 9cab2cd940
commit ccf063709e
5 changed files with 8 additions and 6 deletions

View File

@ -191,7 +191,7 @@ export default defineComponent({
}
};
if (isLink(e.target)) return;
if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
if (['INPUT', 'TEXTAREA', 'IMG'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
if (window.getSelection().toString() !== '') return;
const path = this.$route.path;
os.contextMenu([{