From 8eda1032dfd1bc4a9812f4905a83bf87e57bcbeb Mon Sep 17 00:00:00 2001 From: nikicaraznatovic Date: Mon, 13 May 2024 19:09:11 +0200 Subject: [PATCH] fix pasting on readonly InputNumber --- components/lib/inputnumber/InputNumber.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lib/inputnumber/InputNumber.vue b/components/lib/inputnumber/InputNumber.vue index c041b4e7d..bb1db6dd4 100755 --- a/components/lib/inputnumber/InputNumber.vue +++ b/components/lib/inputnumber/InputNumber.vue @@ -550,6 +550,9 @@ export default { }, onPaste(event) { event.preventDefault(); + + if(this.readonly) return + let data = (event.clipboardData || window['clipboardData']).getData('Text'); if (data) {