Skip to content

Don't autofocus comment field with content editor

Simon Knox requested to merge psi-no-focus into master

What does this MR do and why?

Autofocus of the textarea on load means shortcut keys don't work (up/down arrows of gitlab shortcuts). Maybe there are some places we want this (expanding discussions?), but not for initial page load.

How to set up and validate locally

  1. Enable the flag
    Feature.enable(:content_editor_on_issues)
  2. Visit any issue or MR
  3. press down arrow

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports