mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-13 18:01:17 +08:00
Check paste event target
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user