Search value disappears on click