mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 15:05:32 +00:00
default to value() if neither d and choice are null in the accept function
ref #5618
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user