Skip to content

Commit 9f70817

Browse files
committed
Fixed choices object creation for autocomplete widget
1 parent eeec7ac commit 9f70817

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/easy-autocomplete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ function init(Survey) {
2121
return Survey.ItemValue.getData(obj.choices || []);
2222
},
2323
onSetValue: function(obj, value) {
24+
if (!obj.choices) {
25+
obj.choices = obj.createItemValues("choices");
26+
}
2427
obj.choices = value;
2528
}
2629
});

0 commit comments

Comments
 (0)