Skip to content

Active/focused element is incorrect on page load

  • When a page loads with the AI panel collapsed, the body element gets the focus, which means that the main content panel cannot be scrolled up and down using the keyboard until the user specifically moves the focus within it.
  • When the AI panel is expanded, the chat's textarea steals the focus, which also poses UX/a11y concerns as the user likely expects the main content area to be active when the page loads.

Resolution steps

Edited by 🤖 GitLab Bot 🤖