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 15:10:25 +0000 (15:10 +0000)
Fixes openwrt/luci#2624

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 3a24c2dbaa9b781504bb2847153e2514bcbe717e)

modules/luci-base/luasrc/view/cbi/value.htm

index 8eec865348c3ecec9ddf7d1f981565ee0d1b0663..fec56fac16d96a12adb35cbf930a04435acc6a18 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 -%>