Merge pull request #5637 from openstreetmap/5618

fix autocomplete combobox bug
This commit is contained in:
Bryan Housel
2018-12-26 15:15:29 -05:00
committed by GitHub
+1 -1
View File
@@ -341,7 +341,7 @@ export function uiCombobox(context, klass) {
// Dispatches an 'accept' event if an option has been chosen.
// Then hides the combobox.
function accept(d) {
d = d || _choice;
d = d || _choice || value();
if (d) {
utilGetSetValue(input, d.value);
utilTriggerEvent(input, 'change');