Skip to content

Commit

Permalink
Fix #499 documentation error about passedElement (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone authored and jshjohnson committed Feb 14, 2019
1 parent 22e1884 commit c424ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c424ae2

Please sign in to comment.