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

Use with react redux form #233

Open
charithAmila opened this issue May 18, 2017 · 0 comments
Open

Use with react redux form #233

charithAmila opened this issue May 18, 2017 · 0 comments

Comments

@charithAmila
Copy link

I use this with react-redux form . It is working . when destroy the redux from typeahead is not destroy (clean)

const renderTypeaheadField = ({ input, label,options, type, meta: { touched, error } }) => (
    <div>
        <Typeahead
		    options={options}
		    maxVisible={10}
		    {...input}
		/>
        {touched && error && <span className="required">{error}</span>}
    </div>
)
componentWillReceiveProps(nextProps){
		if( nextProps.submitSucceeded  ) `{`
			nextProps.destroy('add-customer')
		}
	}
@charithAmila charithAmila changed the title User react redux form Use with react redux form May 18, 2017
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

No branches or pull requests

1 participant