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

Adding a name property to the survey class breaks page name editor

Open SamMousa opened this issue 6 months ago • 0 comments

Are you requesting a feature, reporting a bug or ask a question?

Bug

What is the current behavior?

Adding a custom property name with a default value to the survey class breaks the page name editor. Broken: just 1 field image

Normal: 2 fields image

What is the expected behavior?

Adding a property (with any config) to the Survey class should not affect the page class and therefore not the page title / name editor.

How would you reproduce the current behavior (if this is a bug)?

  1. Go the the page linked below
  2. Uncomment line 4 to see the bug

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://codepen.io/sammousa/pen/vYPGMrL?editors=0010 Test code

Survey.Serializer.addProperty("survey", {
    name: "name",
    // UNCOMMENT LINE BELOW TO SHOW THE BUG
    //default: "test"
});

Specify your

  • browser: n/a
  • editor version: ..124

SamMousa avatar Jan 08 '24 10:01 SamMousa