This seems to happen when viewing YAML for an existing resource or creating a new resource from YAML. The entire content is preselected when you visit the tab. We shouldn't be preselecting the content. It makes it harder to read and makes it easy to accidentally delete.
This might be a regression from bumping the monaco dependencies in https://github.com/openshift/console/pull/6157
I don't see anything obvious; I reached out to Josh Pinkney to see if he has any ideas here.
Hi, Rebecca. I happened to start looking at this when I opened the bug, and I have a fix.
This is not reproduced.
Verified on 4.6.0-0.nightly-2020-08-10-200500
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.