Just to add my 2 cents, there's this very long thread on this topic here:
I can confirm that this happens to my a lot, but exclusively when writing code in the event handlers within components (same as your video). Doesn't happen at all (or almost never) elsewhere.