Skip to content

Preview not disappearing when coming back to only content lesson #405

@shhdharmen

Description

@shhdharmen

Describe the bug

If you create a lesson with only content (keeping editor, terminal and previews as false), then go the next lesson which has previews enabled, wait until previews are loaded, then come back to content only lesson, you will see that preview is not going away.

Link to a StackBlitz project which shows the error

https://stackblitz.com/github/shhdharmen/dawn-snowflake

Steps to reproduce

  1. Create a content only lesson (keeping editor, terminal and previews as false)
  2. Create next lesson with everything
  3. Open content only lesson
  4. Go to next lesson using bottom navigation
  5. Wait until preview is loaded
  6. Come back to content only lesson using bottom navigation
  7. Observe that preview is not going away

Expected behavior

When coming back to content only lesson, preview should disappear.

Screenshots

Uploading Screen Recording 2024-11-05 203540.mp4…

Platform

  • TutorialKit version: 0.1.1
  • OS: Windows
  • Browser: Edge
  • Version: 130.0.2849.68

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions