Skip to content

Add second event handler oninput to help mitigate the issue

Tomas Bulva requested to merge add-oninput-event-handler into master

What does this MR do and why?

In extreme cases when the user clicks into the search header too fast and starts typing no dropdown is shown. This is due to the focus handler not being attached at the time of focus. Adding a second event handler for input will catch when the user starts typing.

Screenshots or screen recordings

before after
before-handlers after-dropdown-load

How to set up and validate locally

  1. checkout this branch
  2. slow down (throttle) your network in dev tools
  3. click into the header search input box as soon as it loads
  4. start imediatly typing
  5. dropdown should appear

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 #360709 (closed)

Merge request reports