survey-library
survey-library copied to clipboard
window.survey.render issue after the Release of 1.9.48
Are you requesting a feature, reporting a bug or asking a question?
window.survey.render is not working after the new release version i.e. 1.9.48.
What is the current behavior?
window.survey.render("surveyElement-" + item.questionID);
What is the expected behavior?
suvery model should appear on the div id "surveyElement-" + item.questionID which was working fine till the 1.9.47 version.
Test code
var jsons = new Survey.JsonObject().toJsonObject(item);
var results = {
"elements": [
jsons
]
}
window.survey = new Survey.Model(results);
window.survey.showNavigationButtons = false;
survey.showQuestionNumbers = "off";
window.survey.focusFirstQuestionAutomatic = false;
window.survey.render("surveyElement-" + item.questionID);
In version 1.9.47
In version 1.9.48
Specify your
- browser: chrome
- surveyjs platform (angular or react or jquery or knockout or vue): knockout
- surveyjs version: 1.9.48
Change to using
window.survey = new SurveyKnockout.Survey(results);