survey-creator
survey-creator copied to clipboard
Adding a name property to the survey class breaks page name editor
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
Normal: 2 fields
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)?
- Go the the page linked below
- 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