survey-library icon indicating copy to clipboard operation
survey-library copied to clipboard

window.survey.render issue after the Release of 1.9.48

Open avichhetri8 opened this issue 2 years ago • 1 comments

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

image

In version 1.9.48

image

Specify your

  • browser: chrome
  • surveyjs platform (angular or react or jquery or knockout or vue): knockout
  • surveyjs version: 1.9.48

avichhetri8 avatar Sep 09 '22 11:09 avichhetri8

Change to using

window.survey = new SurveyKnockout.Survey(results);

mwrouse avatar Sep 20 '22 17:09 mwrouse