Skip to content

Commit 26e0ad9

Browse files
committed
refactor: missing ac variable
1 parent 7a5c8ea commit 26e0ad9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export function init(id, invoke) {
4141
if (duration > 0) {
4242
ac.debounce = true
4343
EventHandler.on(input, 'keydown', debounce(e => {
44-
handlerKeydown(e);
44+
handlerKeydown(ac, e);
4545
}, duration, e => {
4646
return ['ArrowUp', 'ArrowDown', 'Escape', 'Enter', 'NumpadEnter'].indexOf(e.key) > -1
4747
}))
4848
}
4949
else {
5050
EventHandler.on(input, 'keydown', e => {
51-
handlerKeydown(e);
51+
handlerKeydown(ac, e);
5252
})
5353
}
5454

@@ -166,7 +166,7 @@ const handlerKeyup = (ac, e) => {
166166
}
167167
}
168168

169-
const handlerKeydown = e => {
169+
const handlerKeydown = (ac, e) => {
170170
if (e.key === 'Tab') {
171171
ac.triggerBlur();
172172
}

0 commit comments

Comments
 (0)