Issue T5321
Visible to All Users

Undo and redo issues in JSON Editor tab

created 5 years ago

Hi,

there seems to be an issue with the undo and redo functionality in JSON Editor tab. If you open this tab, the undo and redo buttons are always active, even if the user did not take any action so far. You can click undo until the String "Error" appears in the ace editor. I would expect undo and redo buttons to be disabled until the user made any changes.

undoredo.gif

Thanks!

Comments (2)

    Hello Hendrik,
    I think we need to hide them for JSON tab. We will discuss this issue with the team.

    Thank you,
    Andrew
    SurveyJS Team

    HH HH
    Hendrik Hansmeier 5 years ago

      Until we don't really need these buttons in the JSON Editor, that would be no problem. But as long as they exist, users will use them.

      Thanks!

      Answers approved by surveyjs Support

      created 5 years ago

      Hello,

      I've fixed the issue via the https://github.com/surveyjs/survey-creator/commit/3cf3c2d535032553bc6ddbfe32e73b63354f9b3c commit.
      Now the undo/redo are enabled only if corresponding operations are available. The fix will be available in the nearest update.

      Thanks, Serge
      SurveyJS Team