From 48b74a91bcf5d95bf21a7d4329ae9b4125f75baa Mon Sep 17 00:00:00 2001 From: Jeremy Hou Date: Mon, 21 Jan 2019 00:46:14 -0800 Subject: [PATCH] fixes the 'invalid input type' check (#498) --- src/scripts/choices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/choices.js b/src/scripts/choices.js index 19e3af0..945d3c8 100644 --- a/src/scripts/choices.js +++ b/src/scripts/choices.js @@ -101,7 +101,7 @@ class Choices { }); } - if (!passedElement) { + if (!this.passedElement) { return console.error('Passed element was of an invalid type'); }