How to close the SearchBox without using the X button

I’m using React and I am trying to emulate the button reset() function which is triggered by the X button on the right hand side of the search field. I want my search result list to close when I select one of the choices. I’ve tried to trigger form.reset() but I am outside the form itself and it doesn’t work. Any idea? Many thanks