-
Notifications
You must be signed in to change notification settings - Fork 226
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
onUpdateInput for AutoComplete #142
base: master
Are you sure you want to change the base?
Conversation
sachinmour
commented
Apr 23, 2017
- onUpdateInput should execute regardless of dataSourceConfig.
- As we would like to have different methods for user select and user change, another function such onUpdateInput which is also available in material-ui core library, this would be a good addition.
* onUpdateInput should execute regardless of dataSourceConfig. * As we would like to have different methods for user select and user change, another function such onUpdateInput which is also available in material-ui core library, this would be a good addition.
Codecov Report
@@ Coverage Diff @@
## master #142 +/- ##
==========================================
+ Coverage 76.31% 78.37% +2.06%
==========================================
Files 11 11
Lines 38 37 -1
==========================================
Hits 29 29
+ Misses 9 8 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem right. See note in code.
@@ -3,7 +3,7 @@ import createComponent from './createComponent' | |||
import mapError from './mapError' | |||
|
|||
export default createComponent(AutoComplete, ({ | |||
input: { onChange, value }, | |||
input: { onChange, value, onUpdateInput }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onUpdateInput
is not in input
. input
are callbacks that redux-form
generates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct.. i meant when you are overwriting the input by passing it as props..
maybe code should be more like..
if (onUpdateInput) {..}
@erikras @sachinmour are there any plans get this change into a release? |
@erikras any update on this? I can't get a basic async search going on autocomplete with the redux-form version. With or without a dataSourceConfig, it simply does not fire onUpdateComplete |