Input field search type - hide repeater on clear

I’ve created an autocomplete dropdown based on a common autocomplete template.

The input field is typed ‘search’ meaning when the mouse hovers over the field or OnFocus the clear field button is shown, this works in most circumstances other than when the repeater unit is visible. Clicking clear does clear the input field, but I would also like to hide the repeater when that happens - is this possible?

If the browser-specific clear button on the field triggers the OnTextChange event you could easily use that to hide the repeater. If it doesn’t, well, it will be trickier.