diff --git a/assets/tomselect/autoselect_typed/autoselect_typed.js b/assets/tomselect/autoselect_typed/autoselect_typed.js index 3019d4c8..8a426be7 100644 --- a/assets/tomselect/autoselect_typed/autoselect_typed.js +++ b/assets/tomselect/autoselect_typed/autoselect_typed.js @@ -24,6 +24,11 @@ function select_current_input(self){ } const val = self.inputValue() + //Do nothing if the input is empty + if (!val) { + return + } + if (self.options[val]) { self.addItem(val) self.setTextboxValue()