From c424ae2f3b44e71ad4ca8099830aec17afc3c85c Mon Sep 17 00:00:00 2001 From: Hans Lemuet Date: Thu, 14 Feb 2019 09:34:44 +0100 Subject: [PATCH] Fix #499 documentation error about passedElement (#517) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 186caadd2..00659a893 100644 --- a/README.md +++ b/README.md @@ -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);