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

onUpdateInput for AutoComplete #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sachinmour
Copy link

  • 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-io
Copy link

codecov-io commented Apr 23, 2017

Codecov Report

Merging #142 into master will increase coverage by 2.06%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/AutoComplete.js 50% <0%> (+7.14%) ⬆️
src/Slider.js 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b26f161...1d755f4. Read the comment docs.

Copy link
Owner

@erikras erikras left a 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 },
Copy link
Owner

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.

Copy link
Author

@sachinmour sachinmour Apr 24, 2017

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) {..}

@llamamoray
Copy link

@erikras @sachinmour are there any plans get this change into a release?

@cyrus-za
Copy link

cyrus-za commented Jul 8, 2017

@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

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.

5 participants