aboutsummaryrefslogtreecommitdiff
path: root/autocomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'autocomplete.js')
-rw-r--r--autocomplete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/autocomplete.js b/autocomplete.js
index a8de5fe..aa2ad12 100644
--- a/autocomplete.js
+++ b/autocomplete.js
@@ -1,5 +1,5 @@
const DEFAULTS = {
- treshold: 2,
+ threshold: 2,
maximumItems: 5,
highlightTyped: true,
highlightClass: 'text-primary',
@@ -90,7 +90,7 @@ class Autocomplete {
createItems() {
const lookup = this.field.value;
- if (lookup.length < this.options.treshold) {
+ if (lookup.length < this.options.threshold) {
this.dropdown.hide();
return 0;
}