The discussion revolves around the welcome banner search input losing focus after selecting a result, with Arkshine initially reporting the issue and providing an error message stack trace. nolo shares a related issue with inconsistencies when multiple search menus are available, using the keyboard shortcut / for search, and provides a screencast. Arkshine references a related PR that should fix the behavior, but nolo notes that it doesn’t fully align the behavior, particularly with the Advanced Search Banner component. The focus hierarchy is tricky to define due to multiple combinations. Arkshine mentions that Martin is working on a PR that improves a few things, which might help with the issue, and provides a link to the PR: https://github.com/discourse/discourse/pull/32099.
When you enter a search in the welcome banner, the input field loses focus after selecting a suggested result. This problem also occurs when using the clear button.
Instead, it throws the following error in the console:
I don’t know if this is related, but there seem to be some inconsistencies when more than one search menu is available. For example using the keyboard shortcut / for search opens and focuses the header search, even when the search banner is rendered. This also happens when the search icon would actually be hidden in the header.