Delay before searching in SearchModal

Hi there,

I am working on a plugin that includes a SearchModal which hits a REST api to get results. I want to avoid overloading the API, so would like to incorporate a delay before searching. Usually I’d use settimeout / cleartimeout for this but can’t figure out how to get that to mesh with the SearchModal interface. Does anyone have any suggestions?