formsy / formsy-material-ui

A Formsy compatibility wrapper for Material-UI form components
MIT License
571 stars 149 forks source link

Fixing some issues with AutoComplete #231

Closed alan-cruz2 closed 3 years ago

alan-cruz2 commented 7 years ago

Background issues:

  1. 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.

  2. If, for some reason, blur is not triggered on the AutoComplete element, an incorrect value can be set for the formsy element/model.

  3. Could not reset MUI AutoComplete component using [AutoCompleteComponent].setState({ searchText: '' }) because FormsyAutoComplete did not provide access to component.

This PR:

alan-cruz2 commented 7 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.

rkuykendall commented 3 years ago

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.