Simulator dropdown is added every time readOnly is set a value

This issue has been tracked since 2023-02-14.

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

Reporting a bug

What is the current behavior?

Calling surveyCreator.readOnly=false or surveyCreator.readOnly=true multiple times results in multiple instances of 'Choose device' dropdown in 'Test Survey' tab.

What is the expected behavior?

Only one 'Choose device' dropdown must be created.

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

Call surveyCreator.readOnly=false several times.

Specify your

  • browser: Chrome 110.0.5481.97
  • editor version: 1.9.72
JaneSjs wrote this answer on 2023-02-26

Hello @zy-serguei,
I created the following demo, but didn't get any issues: https://codesandbox.io/s/zealous-firefly-h764kw?file=/src/SurveyCreatorComponent.jsx.

Please clarify how to reproduce the problem.

More Details About Repo
Owner Name surveyjs
Repo Name survey-creator
Full Name surveyjs/survey-creator
Language TypeScript
Created Date 2015-12-22
Updated Date 2023-03-30
Star Count 683
Watcher Count 29
Fork Count 308
Issue Count 301

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date