diff --git a/src/selectize.js b/src/selectize.js index 17e008d3a..9b055cb2f 100644 --- a/src/selectize.js +++ b/src/selectize.js @@ -356,7 +356,7 @@ $.extend(Selectize.prototype, { e.preventDefault(); return; case KEY_RETURN: - if (self.$activeOption) { + if (self.isOpen && self.$activeOption) { self.onOptionSelect({currentTarget: self.$activeOption}); } e.preventDefault();