tutorialkit icon indicating copy to clipboard operation
tutorialkit copied to clipboard

Add an `Undo` button to revert to user state after clicking on `Solve`

Open Barbapapazes opened this issue 1 year ago • 1 comments

Describe the bug

Hello 👋,

The editor does not retain the changes when showing the solution.

Link to a StackBlitz project which shows the error

No response

Steps to reproduce

  1. Go to https://demo.tutorialkit.dev/forms-tutorial/introduction/welcome/
  2. Change something in the editor
  3. Click on solve
  4. Click on reset

No more changes

Expected behavior

Maybe this is an expected behavior but having the ability to compare my solution with the provided is important in the process to learn. The reset button could still exists but to clean the editor, not to go back to the user solution.

Screenshots

No response

Platform

  • TutorialKit version: [e.g. 1.0.1]
  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Barbapapazes avatar Aug 06 '24 10:08 Barbapapazes