default to value() if neither d and choice are null in the accept function

ref #5618
This commit is contained in:
Max Grossman
2018-12-20 08:52:16 -05:00
parent f478fdbfbd
commit 2dab19e9ae

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');