-
Notifications
You must be signed in to change notification settings - Fork 31
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
'action' is not defined no-undef #10
Comments
Is the error still there ? |
yes it is, i am using |
Same error. |
i am having the same issue any solution to it ? |
Here is an example
|
Avoid using `action` within the sample code, as it caused some confusion with non-redux users. (#10)
<FuzzySearch ref={(node) => {this.search = node;}} list={list} keys={['title', 'label']} width={430} onSelect={action('selected')} />
i'm not sure what i'm missing here but this code fails to compile with this error: 'action is not defined no-undef',
i'm not sure how to return the chosen item to the input, i tried replacing {action('selected')} with my own method 'handleSelected':
handleSelected(event){ this.setState({ selected: event.title }) }
but i can't tell how to feed the state back to the input as there is no 'value' property for example
The text was updated successfully, but these errors were encountered: