Add a confirmation dialog when pressing "Reset" on the "Try it" live code examples #1739
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
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...
The text was updated successfully, but these errors were encountered: