Check paste event target

This commit is contained in:
CzBiX
2019-09-04 13:30:07 +08:00
parent 43a09603fc
commit c756e35a45
2 changed files with 11 additions and 1 deletions

View File

@@ -155,6 +155,10 @@ export default Vue.extend({
});
},
onPaste(e: ClipboardEvent) {
if (e.target.tagName === 'INPUT') {
return;
}
const text = e.clipboardData.getData('text');
if (text) {
this.pasteUrl = text;

View File

@@ -1,5 +1,11 @@
<template>
<v-dialog :value="true" @input="closeDialog" :fullscreen="phoneLayout" width="40em">
<v-dialog
:value="true"
@input="closeDialog"
:fullscreen="phoneLayout"
persistent
width="40em"
>
<v-card>
<v-card-title
class="headline grey lighten-4"