From 2dab19e9ae3098d6a8ba6be76dfb93f0ace69c8e Mon Sep 17 00:00:00 2001 From: Max Grossman Date: Thu, 20 Dec 2018 08:52:16 -0500 Subject: [PATCH] default to value() if neither d and choice are null in the accept function ref #5618 --- modules/ui/combobox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/combobox.js b/modules/ui/combobox.js index f8f6f8779..66f79af10 100644 --- a/modules/ui/combobox.js +++ b/modules/ui/combobox.js @@ -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');