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)
committerYousong Zhou <yszhou4tech@gmail.com>
Sat, 6 Jul 2019 15:10:03 +0000 (15:10 +0000)
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>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 8c77975d1bfc9f79580b83f5b5e591b8b4cae67f)

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 -%>