Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting value of auto complete #1

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Conversation

alan-cruz2
Copy link
Owner

Addresses two problems:

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

Since there is little value of having a state attribute of value lets use the helper function (through the mixin) to guarantee that formsy has the most "up-to-date" value.

Addresses two problems:
- 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.

Since there is little value of having a state attribute of `value` lets use the helper function (through the mixin) to guarantee that formsy has the most "up-to-date" value.
@alan-cruz2 alan-cruz2 merged commit 11a5d4a into master Aug 11, 2017
alan-cruz2 pushed a commit that referenced this pull request Aug 25, 2017
Tag v0.6.2

Update acknowledgements

setMuiComponent_autoComplete
setting value of auto complete

Addresses two problems:
- 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.

Since there is little value of having a state attribute of `value` lets use the helper function (through the mixin) to guarantee that formsy has the most "up-to-date" value.
Merge pull request #2 from alan-cruz2/patch-1

setMuiComponent_autoComplete
Merge pull request #1 from alan-cruz2/using_setValue_autocomplete

setting value of auto complete
Update FormsyAutoComplete.jsx
Update FormsyAutoComplete.jsx
Merge pull request #3 from alan-cruz2/adding-back-setState

Update FormsyAutoComplete.jsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant