Comments (4)
An alternative seems to use onCanAdd
to detect addition value.
from bootstrap5-tags.
@Gaetanbrl not sure i get the issue
if you have an existing suggestion, it will be focused. therefore, pressing enter will add it
if you want to allow new suggestions, you can allowNew
onCanAdd is for custom validation
onSelectItem is for existing items
onCreateItem is for new items
from bootstrap5-tags.
@Gaetanbrl does it answer your question?
from bootstrap5-tags.
closing due to lack of feedback
from bootstrap5-tags.
Related Issues (20)
- removeAll() does'nt work if additem() was used HOT 3
- Items in OptGroup selected before init are not added as labels HOT 2
- css class are overwritten on initialization HOT 2
- Is possible to copy and paste multiple tags HOT 7
- Suggestion: Adding a setItem method HOT 12
- data-selected not working for 'new' values HOT 5
- How to used the script in only one form ? HOT 2
- searchFields not working HOT 7
- scroll not working HOT 16
- Version 1.6.12 - blur - add on tab HOT 3
- setItem function show placeholder HOT 1
- When using setItem and data-max="1", it's possible to write text after the set tag HOT 2
- option inside optgroup cannot auto-select HOT 4
- filter for bad characters HOT 4
- How to add data attribute on input? HOT 2
- Blur is broken on the modal demo HOT 4
- Pass through the title attribute for tooltips HOT 1
- Accessibility issue. HOT 4
- Live-server combined with selected? HOT 6
- Missing first option when using the <select multiple> HOT 2
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 bootstrap5-tags.