Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add a confirmation dialog when pressing "Reset" on the "Try it" live code examples #1739

Open
cow1337killer3 opened this issue Feb 22, 2024 · 0 comments · May be fixed by #2052
Open

Add a confirmation dialog when pressing "Reset" on the "Try it" live code examples #1739

cow1337killer3 opened this issue Feb 22, 2024 · 0 comments · May be fixed by #2052
Assignees
Labels
effort: small This task is a small effort. enhancement Improves an existing feature. has PR Issues that already have a PR p2 We want to address this but may have other higher priority items. ux

Comments

@cow1337killer3
Copy link

INTRO:
I often go on the web docs just to use the "Try it" live code examples as my own quick-to-access coding environment for JavaScript. If I need to test something in JavaScript, I literally just open my browser and search "map array" and click on the first result, which brings me to the website.

PROBLEM:
I can't tell you how many times I've spent up to an hour typing out/testing code, and then I accidentally click on "Reset" instead of "Run". You can't Control-Z to get it back. It's gone forever.

SOLUTION:
When clicking "Reset", please have a dialog window that pops up and asks you to confirm. Also, I don't even know why anybody would use the "Reset" button instead of just refreshing the page anyways...

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 22, 2024
@argl argl added enhancement Improves an existing feature. ux and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Mar 4, 2024
@caugner caugner transferred this issue from mdn/yari Mar 18, 2024
@caugner caugner added the p2 We want to address this but may have other higher priority items. label Mar 18, 2024
@caugner caugner added the effort: small This task is a small effort. label Jun 24, 2024
@caugner caugner linked a pull request Nov 14, 2024 that will close this issue
@caugner caugner self-assigned this Nov 14, 2024
@caugner caugner added the has PR Issues that already have a PR label Nov 14, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
effort: small This task is a small effort. enhancement Improves an existing feature. has PR Issues that already have a PR p2 We want to address this but may have other higher priority items. ux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants