Description
The text area value is not updated on setting the question comment/other value in the code
Please review the following code and example. It doesn't work correctly:
const survey = new Survey.Model(json);
survey.addNavigationItem({ title: "Set comment", action: () => {
survey.setComment("car", "new value");
alert(survey.getQuestionByName("car").comment);
}})
survey.onComplete.add((sender, options) => {
console.log(JSON.stringify(sender.data, null, 3));
});
survey.data = { car: "other", "car-Comment": "Some text" };
The following issue is the result of this issue.