Fixed autocomplete menu not closing when deleting the input