IdleSearchField currently does not provide a way for parent components to focus the input. The current patch in #6025 uses a ref on a wrapper element and then gets at the input using wrapper.querySelector("input[type=search]") .
A cleaner solution would be to convert IdleSearchField to a function component and then use forwardRef, so that <IdleSearchField ref={searchfieldRef}/> gives the parent a ref to the input.
┆Issue is synchronized with this Jira Task
IdleSearchField currently does not provide a way for parent components to focus the
input. The current patch in #6025 uses arefon a wrapper element and then gets at theinputusingwrapper.querySelector("input[type=search]").A cleaner solution would be to convert
IdleSearchFieldto a function component and then useforwardRef, so that<IdleSearchField ref={searchfieldRef}/>gives the parent a ref to the input.┆Issue is synchronized with this Jira Task