Cross button only appear when search bar contains text.