The welcome banner search input loses focus after selecting a result

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 will PR tomorrow)

1 Like

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.

2 Likes

Have you rebuilt recently? I can see a related PR that should fix this behavior: UX: Fix various search shortcut UX issues (#31903) · discourse/discourse@832ed8c · GitHub