summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-06-28 16:03:37 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-07-06 22:48:10 +0800
commit3a24c2dbaa9b781504bb2847153e2514bcbe717e (patch)
tree139ffdf076642a4e6eb425acddb89f111341c5b2
parent609f5290c8d582def0a6334519f5e31aad19abde (diff)
luci-base: hide autocomplete-preventing password input with bigger offset
Fixes openwrt/luci#2624 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--modules/luci-base/luasrc/view/cbi/value.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/value.htm b/modules/luci-base/luasrc/view/cbi/value.htm
index 27f3cb2bd..144853fd9 100644
--- a/modules/luci-base/luasrc/view/cbi/value.htm
+++ b/modules/luci-base/luasrc/view/cbi/value.htm
@@ -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 -%>