fix pasting on readonly InputNumber

pull/5731/head
nikicaraznatovic 2024-05-13 19:09:11 +02:00
parent 86a7d4e2a3
commit 8eda1032df
1 changed files with 3 additions and 0 deletions

View File

@ -550,6 +550,9 @@ export default {
}, },
onPaste(event) { onPaste(event) {
event.preventDefault(); event.preventDefault();
if(this.readonly) return
let data = (event.clipboardData || window['clipboardData']).getData('Text'); let data = (event.clipboardData || window['clipboardData']).getData('Text');
if (data) { if (data) {