summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi/dropdown.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-10-17 07:43:54 +0200
committerJo-Philipp Wich <jo@mein.io>2018-10-17 08:07:48 +0200
commit9e6949849d7a34d17a7e43c79038f26a9b98d879 (patch)
tree1dea5701efd58e00fd593f3fec20cd1d09bd3725 /modules/luci-base/luasrc/view/cbi/dropdown.htm
parent703cd248680d9fd5bae647487ce702ec8d86410f (diff)
luci-base: fix cbi dropdown quirks with MS Edge
On MS Edge, the behaviour of "value" attributes on "li" elements is unreliable, so use the "data-" prefix to circumvent the problem. Ref: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/19320991/ Fixes: #2224 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/dropdown.htm')
-rw-r--r--modules/luci-base/luasrc/view/cbi/dropdown.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/dropdown.htm b/modules/luci-base/luasrc/view/cbi/dropdown.htm
index cf8c03d22c..6f4b89905b 100644
--- a/modules/luci-base/luasrc/view/cbi/dropdown.htm
+++ b/modules/luci-base/luasrc/view/cbi/dropdown.htm
@@ -30,7 +30,7 @@
<li<%=
attr("data-index", i) ..
attr("data-depends", self:deplist2json(section, self.deplist[i])) ..
- attr("value", key) ..
+ attr("data-value", key) ..
ifattr(selected[key], "selected", "selected")
%>>
<%=pcdata(self.vallist[i])%>