Fixed autocomplete to only show if enter has not yet been submitted