From 0465a2a668465b5811b725e864b229757d4aa67c Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Mon, 13 May 2024 22:14:21 +0530 Subject: [PATCH] fix: disable paste function on readonly mode --- components/lib/inputnumber/InputNumber.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/lib/inputnumber/InputNumber.vue b/components/lib/inputnumber/InputNumber.vue index c041b4e7d..41fd50f20 100755 --- a/components/lib/inputnumber/InputNumber.vue +++ b/components/lib/inputnumber/InputNumber.vue @@ -549,6 +549,10 @@ export default { } }, onPaste(event) { + if (this.readonly || this.disabled) { + return + } + event.preventDefault(); let data = (event.clipboardData || window['clipboardData']).getData('Text');