Skip to content

Commit 440ef27

Browse files
committed
refactor: 增加搜索动画
1 parent bd9088b commit 440ef27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/BootstrapBlazor/Components/Select/Select.razor.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ export function init(id, invoke, options) {
7474
EventHandler.on(el, 'shown.bs.dropdown', shown);
7575
EventHandler.on(el, 'keydown', keydown)
7676

77-
const onSearch = debounce(v => invoke.invokeMethodAsync(searchMethodCallback, v));
77+
const onSearch = debounce(async v => {
78+
search.parentElement.classList.add('l');
79+
await invoke.invokeMethodAsync(searchMethodCallback, v);
80+
search.parentElement.classList.remove('l');
81+
});
7882
if (search) {
7983
Input.composition(search, onSearch);
8084
}

0 commit comments

Comments
 (0)