Skip to content

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

Open
@Barbapapazes

Description

@Barbapapazes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions