surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.02k stars 785 forks source link

When duplicated, a Rating Scale question applies the Dropdown display mode on the design surface #8248

Closed JaneSjs closed 2 months ago

JaneSjs commented 2 months ago

Update "renderAs" property doesn't changed correctly based on "displayMode" property in survey-core package.

T16687 - Rating: does not display stars https://surveyjs.answerdesk.io/internal/ticket/details/T16687


The resultant survey JSON:

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "rating",
     "name": "question1",
     "displayMode": "dropdown"
    },
    {
     "type": "rating",
     "name": "question2",
     "renderAs": "dropdown",
     "autoGenerate": false,
     "rateValues": [
      1,
      2,
      3,
      4,
      5
     ],
     "displayMode": "dropdown"
    }
   ]
  }
 ]
}