luci-base: hide autocomplete-preventing password input with bigger offset

Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 3a24c2dbaa)
This commit is contained in:
Yousong Zhou 2019-06-28 16:03:37 +00:00
parent 4235fb0125
commit dbaae4a815

View file

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