Comments (3)
I discovered this is because of filteredSuggestions
https://github.com/prakhar1989/react-tags/blob/master/lib/reactTags.js#L81-L85 and maybe other functions which call this.
This behavior makes sense sometimes, but in all cases its not ideal. For example in my case the filtering is done via an API call so my suggestions list is ready to go - the extra filtering step produces unexpected results.
Is is possible to make this an option so the user can provide their own filter function? What are some other good solutions?
from react-tags.
Would be great if the user could override filteredSuggestions
to supply a custom matching function. Initially I thought i was customizable but I was mistaken.
from react-tags.
Sounds like a good idea. I feel that making the filter
function, customizable would be useful, but I'm not sure how the API should look like. My understanding is that most users would not want to customize that function and hence there should be a reasonable way of making the default available.
I'll see how others are doing it and in the meantime if you have any ideas, feel free to share.
from react-tags.
Related Issues (20)
- Padding css property not impacting layout of Tags Input
- handleInputChange should probably(?) fire when the user adds a tag HOT 1
- j th
- j thh t
- j thh tht
- Check the render method of `WithContext`.
- Where is the style.css file in the demo gif?
- Add support for max number of tags allowed HOT 2
- Allow parent component to pass in a React node as the input box
- Migrate the docs to Docusaurus HOT 7
- Dev Build is broken
- Add Semantic pull request GitHub Action HOT 4
- allowUnique prop allows to add non-unique values
- Warning: Tag: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. HOT 1
- Issue: a form field element should have an id or name attribute HOT 1
- Edit tag in the input box.
- Using a custom icon instead of the x character for the remove button HOT 1
- Move to Typescript
- How to add + icon to open input field
- Integration with react-hook-form
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-tags.