From 629e0b68120a52ba00173b130d50bde1b056e603 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Tue, 7 Feb 2023 15:16:01 -0500 Subject: [PATCH 1/2] 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: { From 3153c65ac610efeec2ff169e6efec00f2bf3b390 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Tue, 7 Feb 2023 17:01:17 -0500 Subject: [PATCH 2/2] fixed back button and updated forward action to go to the coverage-statement page --- .../questions-page-layout/questions-page-layout.vue | 2 +- src/router/router-constants/routing-table.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/iss-components/questions-page-layout/questions-page-layout.vue b/src/iss-components/questions-page-layout/questions-page-layout.vue index f8df17f8..e5e65685 100644 --- a/src/iss-components/questions-page-layout/questions-page-layout.vue +++ b/src/iss-components/questions-page-layout/questions-page-layout.vue @@ -27,7 +27,7 @@ ref="siteFooter" cmsWidgetName="SiteFooterWidget" :isForwardActionDisabled="!isMetaValid" - @back-clicked="handleBackButtonClicked" + @back-clicked="handleBackButtonAction" @ForwardClicked="handleForwardButtonAction" /> diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js index 342ef39a..95179d81 100644 --- a/src/router/router-constants/routing-table.js +++ b/src/router/router-constants/routing-table.js @@ -189,7 +189,7 @@ const routingTable = function(store) { }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS, - destinationIssPageValue: issPageValues.QUOTE, + destinationIssPageValue: issPageValues.COVERAGE_STATEMENT, }, ], }, @@ -222,7 +222,7 @@ const routingTable = function(store) { }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS, - destinationIssPageValue: issPageValues.QUOTE, + destinationIssPageValue: issPageValues.COVERAGE_STATEMENT, }, ], }, @@ -251,7 +251,7 @@ const routingTable = function(store) { }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS, - destinationIssPageValue: issPageValues.QUOTE, + destinationIssPageValue: issPageValues.COVERAGE_STATEMENT, }, ], }, @@ -280,7 +280,7 @@ const routingTable = function(store) { }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS, - destinationIssPageValue: issPageValues.QUOTE, + destinationIssPageValue: issPageValues.COVERAGE_STATEMENT, }, ], }, @@ -317,7 +317,7 @@ const routingTable = function(store) { }, { scenario: navigationScenarios.CLICKED_FORWARD_WITH_NO_MORE_QUESTIONS, - destinationIssPageValue: issPageValues.QUOTE, + destinationIssPageValue: issPageValues.COVERAGE_STATEMENT, }, ], },