Skip to content

Unsaved changes handler is excessive #1633

Closed
@oliversalzburg

Description

@oliversalzburg

Nature of issue?

  • Found a bug

Details about the bug:

  • Web browser and version: Google Chrome 86.0.4240.75
  • Operating System: Windows
  • Steps to reproduce this bug:

Open a sketch, press Play, then close the tab.

Even though I made no changes, the annoying beforeunload handler prevents me from closing the tab.

Feature enhancement details:

Some ideas:

a) Remove the handler entirely, it's more frustrating than it helps.
b) Automatically save drafts to prevent data loss. LocalStorage is a great place for that.
c) Make installation of beforeunload handler configurable.
d) Properly detect actual changes and don't prevent user's from closing a tab just because they played the sketch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Priority:HighShould be addressed soon but not critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions