Skip to content

Commit 0620132

Browse files
committed
fix(AutoComplete): should trigger onBlur when click body
1 parent 88ca87b commit 0620132

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ export function init(id, invoke) {
9494
const el = a.querySelector('[data-bs-toggle="bb.dropdown"]');
9595
if (el === null) {
9696
a.classList.remove('show');
97+
const id = a.getAttribute('id');
98+
const ac = Data.get(id);
99+
if (ac) {
100+
ac.invoke.invokeMethodAsync('TriggerBlur');
101+
}
97102
}
98103
});
99104
});

0 commit comments

Comments
 (0)