[a11y] add missing labels on voucher-input and fix input.focus when revealing voucher-input via JS (#1998)

This commit is contained in:
Richard Schreiber
2021-03-16 12:17:47 +01:00
committed by GitHub
parent 09b2e69178
commit 1357b010de
4 changed files with 10 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ $(function () {
$(".apply-voucher-toggle").click(function (e) {
$(".apply-voucher-toggle").hide();
$(".apply-voucher").show();
$(".apply-voucher input[ŧype=text]").first().focus();
$(".apply-voucher input[type=text]").first().focus();
e.preventDefault();
return true;
});