Skip to content

Commit f6a2e5d

Browse files
committed
Fixed data items for the easy autocomplete custom widget
1 parent 9f70817 commit f6a2e5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/easy-autocomplete.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ function init(Survey) {
4444
afterRender: function(question, el) {
4545
var $el = $(el).is("input") ? $(el) : $(el).find("input");
4646
var options = {
47-
data: question.choices,
47+
data: (question.choices || []).map(function(item) {
48+
return item.getData();
49+
}),
4850
placeholder: question.placeholder
4951
};
5052
if (!!question.choicesByUrl) {

0 commit comments

Comments
 (0)