Add second event handler oninput to help mitigate the issue
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 |
---|---|
How to set up and validate locally
- checkout this branch
- slow down (throttle) your network in dev tools
- click into the header search input box as soon as it loads
- start imediatly typing
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #360709 (closed)