It's window.stop() to stop the search request to the server. It's not to stop the click event.