When opening a custom search panel, the search input (marked with a main-field="true"
attribute) only receives focus when the search panel already exists. When the search panel does not already exist, focus()
is not called.
Demo: Try CodeMirror
I think this may have come about because the default search panel has a call to the search input’s select()
method on mount, which masks the problem.