Hide dropdown when input is clicked again