Merge pull request #5730 from qburst/fix--5726
fix: disable paste functionality in readonly modepull/5758/head
commit
5205278ef4
|
@ -549,6 +549,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPaste(event) {
|
onPaste(event) {
|
||||||
|
if (this.readonly || this.disabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let data = (event.clipboardData || window['clipboardData']).getData('Text');
|
let data = (event.clipboardData || window['clipboardData']).getData('Text');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue