Closed alan-cruz2 closed 3 years ago
@rojobuffalo sorry it took so long. I squashed the commits into one, but it looks like I squashed one too many together. Sorry. let me know if this is a problem and I can fix it.
Hi @alan-cruz2! I know it's been a few years, but this project is coming back to life! The first step is getting all the old PRs either closed or merged.
Background issues:
If using FormsyAutoComplete a user begins to type and uses the keyboard to select the first option in the AutoComplete menus (Keyboard, not mouse click) handleBlur will set _value before the selected autocomplete item text is set in the input.
If, for some reason, blur is not triggered on the AutoComplete element, an incorrect value can be set for the formsy element/model.
Could not reset MUI AutoComplete component using
[AutoCompleteComponent].setState({ searchText: '' })
because FormsyAutoComplete did not provide access to component.This PR:
setValue
instead ofsetState