Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Playground: Add a way to clear and reset the editor text from the UI. #2787

Closed
DanKaplanSES opened this issue Apr 13, 2023 · 1 comment
Closed
Labels
Playground Issues that affect the Playground

Comments

@DanKaplanSES
Copy link
Contributor

DanKaplanSES commented Apr 13, 2023

Visiting https://www.typescriptlang.org/play loads the last code you saved. While generally useful, on mobile, this makes it challenging to create new playground: the editor does not support select all (in a way I could figure out) or drag selection, so the only way to create a new playground was the hold the delete button until all the text is gone. Given the last code I wrote, this would've required holding down the delete button for at least a minute.

Repro:

  1. Using the android browser, create a playground and save it.
  2. Close the tab.
  3. Go back to https://www.typescriptlang.org/play
  4. Try to create a new playground

Expected behavior:
Somewhere in the playground, perhaps in a menu, there is a way to clear the last saved playground.

Actual behavior:
I could only delete the text content by holding the delete button and waiting.

Workaround:
This URL will bring up a blank playground every time: https://www.typescriptlang.org/play?#code/Q. It can be bookmarked to achieve the same effect.

I have not tested this on any iOS device.

@DanKaplanSES DanKaplanSES added the Playground Issues that affect the Playground label Apr 13, 2023
@DanKaplanSES DanKaplanSES changed the title Playground: Add a way to clear and reset the editor text in the UI. Playground: Add a way to clear and reset the editor text from the UI. Apr 13, 2023
@typescript-bot
Copy link
Collaborator

Hello! As per #2804, we are automatically closing all open issues. Please see #2804 for a description of what issues and PRs can be accepted going forward.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Playground Issues that affect the Playground
Projects
None yet
Development

No branches or pull requests

2 participants