luci-base: cbi.js: fix passing multiple dropdown values in change event

Due to a misspelled property name, only the first value was passed in
the event details.

Fixes: c2b570998 ("luci-base: cbi.js: rework dropdown implementation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2018-11-05 16:41:25 +01:00
parent 10838c3660
commit a453f2b9d0

View file

@ -1754,7 +1754,7 @@ CBIDropdown = {
element: sb
};
if (this.mult)
if (this.multi)
detail.values = values;
else
detail.value = values.length ? values[0] : null;