Skip to content

Commit a6da9bf

Browse files
committed
Fix #145 Easyautocomplete not working on MatrixDynamic questions with choicesByUrl
1 parent b52b8b9 commit a6da9bf

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/easy-autocomplete.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,7 @@ function init(Survey, $) {
1919
Survey.JsonObject.metaData.addProperty("text", "choices:itemvalues");
2020
Survey.JsonObject.metaData.addProperty("text", {
2121
name: "choicesByUrl:restfull",
22-
className: "ChoicesRestfull",
23-
onGetValue: function(obj) {
24-
return obj && obj.choicesByUrl && obj.choicesByUrl.getData();
25-
},
26-
onSetValue: function(obj, value) {
27-
if (!obj.choicesByUrl) {
28-
obj.choicesByUrl = new Survey.ChoicesRestfull();
29-
}
30-
obj.choicesByUrl.setData(value);
31-
}
22+
className: "ChoicesRestfull"
3223
});
3324
Array.prototype.push.apply(
3425
Survey.matrixDropdownColumnTypes.text.properties,

0 commit comments

Comments
 (0)