Comments (6)
https://github.com/yairEO/tagify#output-value
from tagify.
If I use e.target.value.toUpperCase()
than I get key in object also uppercase. I would like to keep default structure but values transform to uppercase.
This variant originalInputValueFormat: valuesArr => valuesArr.map(item => item.value).join(',')
change structure of array.
Sorry for the stupid question.
from tagify.
I feel this is an XY question.
Why do you want the input values to be uppercase? why is this important to you?
from tagify.
I send output array to backend after then I filter array on backend with array from Tagify. For me important have values in uppercase because in backend array I have values in uppercase.
from tagify.
I tried like this by it doesn't work for me
originalInputValueFormat: valuesArr => valuesArr.map(item => {
const container = {};
container[item.value] = item.value.toUpperCase();
return container;
})
from tagify.
what does it matter if the values are in uppercase or not, it's not important at all. You can change to uppercase while comparing in the backend.
Try this:
originalInputValueFormat: valuesArr =>
valuesArr.map(item => ({...item, value: item.value.toUpperCase()}))
from tagify.
Related Issues (20)
- How can I position the dropdown of Tagify library right below the input? HOT 1
- Does Tagify support Vue3 and to what extent? HOT 3
- Caret is not visible in mix mode HOT 1
- getTagElmByValue gets tag by text not value HOT 1
- Question: tag autocomplete with extra data, but remove extra data on actual tag creation? HOT 3
- change callback not always executed when addTags is called
- How to give the text inside the label a different color for each character according to certain rules HOT 3
- How to remove an edited but duplicate tagοΌ
- How to keep the dropdown open if a user deletes an item in the input. HOT 1
- Delay of 100ms before event.detail.tagify.DOM.originalInput.tagifyValue gets updated HOT 2
- Browser scripts using the CDN script can't access Tagify HOT 3
- Selectable icon/flag with custom text
- XSS vulnerability in <Tags InputMode='textarea'>. HOT 3
- onmozfullscreenerror is deprecated. HOT 1
- is Tagify compatible with alpinejs V3 HOT 1
- Implement contenteditable="plaintext-only"
- React Version 18: Available options not showing (caused by new createRoot syntax) HOT 2
- Delimiter-based tag detection UI updates are broken in mixed-mode; works fine if using Enter to complete. HOT 2
- Fuzzy suggest should prioritize the shortest list item instead of making you type the whole thing to bubble it to the top HOT 4
- Enter key does not create tag when `dropdown.position` is set to `manual`
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 tagify.