Comments (7)
Do you have any trick so as to do right now in order to release to my customer? Or, do you know when could you guys solve it? Thanks!
from ngx-chips.
Hi @igordeoliveirasa, thanks for the congratulations!
Unfortunately right now there is no option for doing that.
Most likely there will be no option for doing it in the future, but I may add an output for when a key is pressed in the input, so that you could transform the value of the value entered. Example:
- transform all keys entered to uppercase
- enter items in uppercase
so that they will match
from ngx-chips.
I'm anxious for that!! Thanks!
from ngx-chips.
I published the version 0.2.2 and now case it is case insensitive :)
from ngx-chips.
Hi Gbuomprisco,
I have updated to the latest version and case is still sensitive:
<tag-input [(ngModel)]="_job.JobClients"
[autocompleteItems]="_clientsNames"
[onlyFromAutocomplete]="true"
placeholder="Client"
secondaryPlaceholder = "Choose Client"
[autocomplete]="true" ngControl="jobClients" name="jobClients" #jobClients="ngForm">
How can Enable it please?
from ngx-chips.
Is there an update on this? The latest version is still case sensitive.
from ngx-chips.
@Gbuomprisco is right in that the tag-input
component is case sensitive, but it doesn't check the autocomplete for case sensitivity when someone is typing a value into the input.
You can do this yourself in a somewhat roundabout way. You have to use the [onAdding]
hook and check for case sensitivity there. If your user enters "abc" and you have an item in your auto complete for "ABC", then you'd return the item from your auto complete. Here's an example:
<tag-input
[onAdding]="checkTagReference()"
...
>
<tag-input-dropdown
[autocompleteItems]="values"
[displayBy]="'itemValue'"
[identifyBy]="'itemValue'"
...
>
<ng-template let-item="item">
{{ item.itemValue }}
</ng-template>
</tag-input-dropdown>
</tag-input>
// Necessary to retain the reference to 'this'
checkTagReference() {
let comp = this;
return function(itemValue: string) {
return comp.checkTag(itemValue);
};
}
checkTag(itemValue: string): Observable<string> {
let comp = this;
return of(comp.getAutocompleteItemIfExists(itemValue));
}
// '_' is lodash: https://lodash.com/docs/4.17.11
getAutocompleteItemIfExists(itemValue: string): string {
let comp = this;
let currentItem = _.find(comp.values, function(value: SomeType) {
return value.itemValue.toLowerCase() === itemValue.toLowerCase();
});
return currentItem ? currentItem.itemValue : itemValue;
}
from ngx-chips.
Related Issues (20)
- Is there any way that I can set value from tagModel used in ngx-chips in angular? HOT 1
- ngx-chips 3.0.0 - angular 13.0.3 errors on build HOT 1
- ngx-chips not working with angular 12 HOT 2
- Error Compiler ngx-chips 3 and angular 13 HOT 2
- FormControl String Value HOT 1
- Improvement to Input Value Type
- allowDupes is case senitive
- Browser refreshes while add a new tag even after adding [appendToBody]= "false"
- Can't import the named export 'ɵɵviewQuery' from non EcmaScript module (only default export is available) HOT 3
- Adding new tags on a new line?
- Cannot find module 'ng2-material-dropdown' from '../../node_modules/ngx-chips/fesm2015/ngx-chips.mjs' HOT 1
- Getting error in ngx-chips dependency of ng2 material dropdown HOT 5
- Wrong imports are used for rxjs operators HOT 3
- Incorrect type of onTextChange event emitter
- Dropdown and onlyFromAutocomplete always add me selected item
- ./node_modules/ngx-chips/fesm2015/ngx-chips.mjs:2540:24-32 - Error: export 'filter' (imported as 'filter$1') - Error HOT 1
- separatorKeyCodes not working for any code except 32
- Which version of ngx-chips works with Angular 10? HOT 1
- onTagEdited is not working correctly while sorting after editing
- Theme not applying to dropdown.
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 ngx-chips.