Skip to content

Commit 7286c4b

Browse files
committed
Fixed bug in autoselect_typed plugin
1 parent a976f97 commit 7286c4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/tomselect/autoselect_typed/autoselect_typed.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ function select_current_input(self){
2424
}
2525

2626
const val = self.inputValue()
27+
//Do nothing if the input is empty
28+
if (!val) {
29+
return
30+
}
31+
2732
if (self.options[val]) {
2833
self.addItem(val)
2934
self.setTextboxValue()

0 commit comments

Comments
 (0)