luci-base: remove fake password field from tab order

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 8c77975d1b)
This commit is contained in:
Jo-Philipp Wich 2018-08-17 06:58:53 +02:00 committed by Yousong Zhou
parent b836c15a3d
commit 9e3f710cac

View file

@ -1,6 +1,6 @@
<%+cbi/valueheader%> <%+cbi/valueheader%>
<%- if self.password then -%> <%- 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) attr("name", "password." .. cbid)
%> /> %> />
<%- end -%> <%- end -%>