From 526c34cd49ad5b83d523132cdffaa5dc2a430879 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 13 Jul 2023 11:14:46 -0400 Subject: [PATCH 1/3] Un format the last auto format. And fix the preventDefault console err --- .../textbox-question/textbox-question.vue | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index f7e0d858..a81b433f 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -134,27 +134,27 @@ export default { const { errorMessage, handleBlur, handleChange, meta, validate, errors } = useField(props.inputId, props.validationRules, fieldOptions); - return { - errorMessage, - handleBlur, - handleChange, - validate, - meta, - errors, - }; - }, - methods: { - trimOnPaste(evt) { - evt.stopPropagation(); - preventDefault(); + return { + errorMessage, + handleBlur, + handleChange, + validate, + meta, + errors, + }; + }, + methods: { + trimOnPaste(evt) { + evt.stopPropagation(); - var data = null; - if (evt.type === "paste") { - data = evt.clipboardData || window.clipboardData; - } else if (evt.type === "drop") { - data = evt.dataTransfer; - } - const value = data.getData("Text")?.trim(); + var data = null; + if (evt.type === "paste") { + data = evt.clipboardData || window.clipboardData; + } else if (evt.type === "drop") { + data = evt.dataTransfer; + evt.preventDefault(); + } + const value = data.getData("Text")?.trim(); this.$emit("update:modelValue", value); }, From 4e4ce5d2abdef0b7b3a385ae666328e5f5a0fd87 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 13 Jul 2023 11:17:14 -0400 Subject: [PATCH 2/3] add prettier config to ignore list --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index b5400d3e..8f48b7f4 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,5 @@ pnpm-debug.log* coverage/* junit.xml /.vs + +.prettierrc From 4d17adb1f984fabd55707d407183a10e7009b157 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 13 Jul 2023 11:24:31 -0400 Subject: [PATCH 3/3] The unformatting previous auto format commit --- .../textbox-question/textbox-question.vue | 563 +++++++++--------- 1 file changed, 278 insertions(+), 285 deletions(-) diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index a81b433f..df3e5001 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -1,138 +1,130 @@