Skip to content

Commit 1c6d6ae

Browse files
authored
fix(AutoComplete): tabbing off AutoComplete field does not close its drop down (#5818)
* refactor: missing ac variable * chore: bump version 9.5.6-beta04
1 parent 7a5c8ea commit 1c6d6ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.5.6-beta03</Version>
4+
<Version>9.5.6-beta04</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

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)