Skip to content

Commit 87e1637

Browse files
committed
fixup! feat(autocomplete): add option to specify minimum characters for autocomplete
1 parent 7a308c4 commit 87e1637

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Autocomplete/assets/dist/controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ _instances = new WeakSet(), _getCommonConfig = function _getCommonConfig() {
134134
.then(json => { this.setNextUrl(query, json.next_page); callback(json.results); })
135135
.catch(() => callback());
136136
},
137-
shouldLoad: (query) => {
137+
shouldLoad: function (query) {
138138
if (query.length < this.minCharactersTextValue) {
139139
return;
140140
}

src/Autocomplete/assets/src/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default class extends Controller {
144144
.then(json => { this.setNextUrl(query, json.next_page); callback(json.results) })
145145
.catch(() => callback());
146146
},
147-
shouldLoad: (query: string) => {
147+
shouldLoad: function (query: string) {
148148
if (query.length < this.minCharactersTextValue) {
149149
return;
150150
}

0 commit comments

Comments
 (0)