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

How can I add icon with click handler in renderSuggestion() to execute method #83

Closed
jsinhSolanki opened this issue Dec 26, 2018 · 1 comment
Labels

Comments

@jsinhSolanki
Copy link

Hey, I am using it in my project and I want list with star icon in it. So when user clicks on star icon list item get pinned. But i can not execute method on click of star icon???? It executes onSelected method always

@darrenjennings
Copy link
Owner

Currently there is no good way to do this. You could try and do something similar to https://codesandbox.io/s/lyn9n07jz7 but it is trying to use methods that were not originally meant to be in the component's API. I currently have an open issue #52 where I hope to introduce something that would make this easier. Stay tuned.

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

No branches or pull requests

2 participants