Skip to content

Commit a3d60af

Browse files
committed
refactor: 精简代码
1 parent 917d43c commit a3d60af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function init(id, invoke) {
7272
filterCallback(v);
7373
});
7474

75-
registerBootstrapBlazorModule('AutoComplete', {
75+
const module = registerBootstrapBlazorModule('AutoComplete', {
7676
hooked: false,
7777
registerCloseDropdownHandler: function () {
7878
if (this.hooked === false) {
@@ -94,7 +94,7 @@ export function init(id, invoke) {
9494
}
9595
}
9696
});
97-
window.BootstrapBlazor.AutoComplete.registerCloseDropdownHandler();
97+
module.registerCloseDropdownHandler();
9898
}
9999

100100
const handlerKeyup = (ac, e) => {

0 commit comments

Comments
 (0)