Skip to content

Resolve "New Issue moves Focus to description"

What does this MR do and why?

This MR fixes an issue where both the title field and description field would fight for receiving autofocus on issuable forms.

It does so by disabling autofocus on the description field.

How to set up and validate locally

In a Browser other than Safari (which does not adhere to the autofocus tag):

  1. Open the "New Issue" page on a project and do nothing.
  2. Verify that autofocus remains on the "Title" field

MR acceptance checklist

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

Related to #418392 (closed)

Edited by Janis Altherr

Merge request reports