fix autosubmit for typeahead