From b4779e5df0dd4d304ce8d868382ebea6a34563c3 Mon Sep 17 00:00:00 2001 From: ScottDormand96 Date: Wed, 29 Nov 2023 13:16:37 +0000 Subject: [PATCH] focus on element instead of jumping back up page --- .../licence-confirmation-method/licence-confirmation-method.njk | 2 ++ .../src/pages/renewals/identify/identify.njk | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/gafl-webapp-service/src/pages/contact/digital-licence/licence-confirmation-method/licence-confirmation-method.njk b/packages/gafl-webapp-service/src/pages/contact/digital-licence/licence-confirmation-method/licence-confirmation-method.njk index 69f9cc0461..b9ee25cb94 100644 --- a/packages/gafl-webapp-service/src/pages/contact/digital-licence/licence-confirmation-method/licence-confirmation-method.njk +++ b/packages/gafl-webapp-service/src/pages/contact/digital-licence/licence-confirmation-method/licence-confirmation-method.njk @@ -140,6 +140,7 @@ document.getElementById("change-email").addEventListener("click", function () { document.getElementById("email-ro").style.display = "none" document.getElementById("email-rw").style.display = "block" + document.getElementById("email").focus() }) })() {% endblock %} diff --git a/packages/gafl-webapp-service/src/pages/renewals/identify/identify.njk b/packages/gafl-webapp-service/src/pages/renewals/identify/identify.njk index db364c0626..4e254304cc 100644 --- a/packages/gafl-webapp-service/src/pages/renewals/identify/identify.njk +++ b/packages/gafl-webapp-service/src/pages/renewals/identify/identify.njk @@ -167,6 +167,7 @@ document.getElementById("change").addEventListener("click", function () { document.getElementById("ref-ro").style.display = "none" document.getElementById("ref-rw").style.display = "block" + document.getElementById("ref").focus() }) })() {% endblock %} \ No newline at end of file