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

Feature Request: Add suggestion when typing. #1

Open
captainko opened this issue Oct 1, 2019 · 2 comments
Open

Feature Request: Add suggestion when typing. #1

captainko opened this issue Oct 1, 2019 · 2 comments

Comments

@captainko
Copy link

No description provided.

@captainko captainko changed the title Feature Request: Add suggestions when typing. Feature Request: Add suggestion when typing. Oct 1, 2019
@jimmybengtsson
Copy link
Owner

jimmybengtsson commented Oct 6, 2019

Sorry for late answer!

Yes, this can and will be implemented in a future release. As for now, I've added a quick fix by implementing the prop customElement.
The component that is passed with customElement will be displayed between the TextInput and the list with tags. In this way you can include a component containing a list of search results from your database.

<TagInput
    updateState={this.updateTagState}
    tags={this.state.tags}
    customElement={<YourListWithSearchResults/>}
/>

I've also added an example to the repo on how to implement this by using customElement.

Leaving this issue open until this is implemented in a better way!

@captainko
Copy link
Author

captainko commented Oct 15, 2019

@jimmybengtsson thank you :), I will look into that.

jimmybengtsson pushed a commit that referenced this issue Dec 18, 2019
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

2 participants