luci-base: remove fake password field from tab order
authorJo-Philipp Wich <jo@mein.io>
Fri, 17 Aug 2018 04:58:53 +0000 (06:58 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 17 Aug 2018 04:58:53 +0000 (06:58 +0200)
Set a negative tabindex on the dummy password field to not break the form
tab order flow.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/value.htm

index 24fb428e65649f2fb75f3570ba07f3a1bb24a764..8eec865348c3ecec9ddf7d1f981565ee0d1b0663 100644 (file)
@@ -1,6 +1,6 @@
 <%+cbi/valueheader%>
        <%- if self.password then -%>
-               <input type="password" style="position:absolute; left:-1000px" aria-hidden="true"<%=
+               <input type="password" style="position:absolute; left:-1000px" aria-hidden="true" tabindex="-1"<%=
                        attr("name", "password." .. cbid)
                %> />
        <%- end -%>