Hi,
There are two built in options that may help you:
– On the Theme Options -> Magnifier & Loading icon panel you can enable the close icon: https://i.imgur.com/LbSU2Ui.png
That will be displayed in the input box, when the user clicks it, it will hide the results and clear the phrase.
– On the Layout Options -> Results behaviour panel there is this option: https://i.imgur.com/Hdf2GZF.png
It allows closing the results on document click.
For a custom solution you will need a custom script as well, that triggers the close icon. If you planning to do that, I recommend this simple method in your event handler:
[code]jQuery(‘.proclose’).click()[/code]
This triggers a click on the close icon, that closes the results and resets the phrase.