Bug when deleting code from the JS tab in full screen

Workflow:

  1. I have a script that I copied from somewhere else
  2. Paste it into the JS tab on a custom component I created
  3. Hit SAVE
  4. Change the script somewhere else, copied
  5. In the JS tab, I use CMD+A to select the whole script
  6. Hit DELETE. It doesn’t delete it. It goes to the beginning of the script.

I have to select all again, hit DELETE for it to actually delete the script, so I can paste the new version.

I believe this is an issue with the full screen version. Here’s what’s happening: when I delete the script (in full screen), if I then click the button to make it smaller, the script comes back, even though I deleted it. There’s something going on there.


EDIT: it’s actually not related to the full screen. For example, I add a script, save it, place the cursor somewhere to delete a character, the cursor jumps to the top of the script (full screen or not)

Can you confirm if you are on the latest version of Discourse?