From 566d41c4014a95ad58056c1a8313bd33c8fe4ec4 Mon Sep 17 00:00:00 2001 From: brian teeman Date: Thu, 24 Dec 2020 08:36:55 +0000 Subject: [PATCH] [4.0] Password focus --- build/media_source/system/js/fields/passwordview.es6.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/media_source/system/js/fields/passwordview.es6.js b/build/media_source/system/js/fields/passwordview.es6.js index 0675257cac9d5..1b951e9f51a74 100644 --- a/build/media_source/system/js/fields/passwordview.es6.js +++ b/build/media_source/system/js/fields/passwordview.es6.js @@ -38,6 +38,9 @@ // Update the input type input.type = 'password'; + // Focus the input field + input.focus(); + // Update the text for screenreaders srText.innerText = Joomla.Text._('JSHOWPASSWORD'); }