luci-base: hide autocomplete-preventing password input with bigger offset
authorYousong Zhou <yszhou4tech@gmail.com>
Fri, 28 Jun 2019 16:03:37 +0000 (16:03 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Sat, 6 Jul 2019 14:48:10 +0000 (22:48 +0800)
Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-base/luasrc/view/cbi/value.htm

index 27f3cb2bd9efc6aa38dd431e2eda89e2db57ac1d..144853fd9f65c08415c90a05c38f687aeeb78af4 100644 (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 -%>