CM sets the focus again after re-entering the page

Hi there!
I’m not sure it’s a bug or a feature :slight_smile:

here’s how you can recreate it:

  • click in the editor field
  • open another page OR open a new tab OR click somewhere outside the browser window
  • go back to the page with editor and see that the FOCUS event was triggered

Is this the expected behavior? Can I somehow prevent re-focus?

I’m not seeing this in Firefox, which suggests it is browser behavior — browsers have rather complicated heuristics for when to focus things on load. The editor itself definitely has no (intentional) autofocus feature.

1 Like