Ensured that the clear button shows up automatically