From 629e0b68120a52ba00173b130d50bde1b056e603 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Tue, 7 Feb 2023 15:16:01 -0500 Subject: [PATCH] found bug on textbox pasting --- src/digital-components/textbox-question/textbox-question.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index c4ba0a65..34dc5662 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -132,11 +132,10 @@ export default { evt.preventDefault(); const data = evt.type == "paste" ? (evt.clipboardData || window.clipboardData) : evt.dataTransfer; - const value = data.getData('Text'); + const value = data.getData('Text')?.trim(); - evt.target.value = value.trim(); + this.$emit("update:modelValue", value); - evt.target.dispatchEvent(new Event('change')); } }, computed: {