mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
parent
22e1884ad4
commit
c424ae2f3b
1 changed files with 1 additions and 1 deletions
|
|
@ -589,7 +589,7 @@ element.addEventListener('addItem', function(event) {
|
|||
// or
|
||||
const example = new Choices(document.getElementById('example'));
|
||||
|
||||
example.passedElement.addEventListener('addItem', function(event) {
|
||||
example.passedElement.element.addEventListener('addItem', function(event) {
|
||||
// do something creative here...
|
||||
console.log(event.detail.id);
|
||||
console.log(event.detail.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue