That was the only way I found to search when the user click on "X" button to clear the searchbar.