Skip to content

Commit fe7e343

Browse files
committed
refactor: Esc 优化性能
1 parent eb54308 commit fe7e343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const handlerKeyup = (ac, e) => {
131131
else if (key === 'Escape') {
132132
const skipEsc = el.getAttribute('data-bb-skip-esc') === 'true';
133133
if (skipEsc === false) {
134-
EventHandler.trigger(menu, 'click');
134+
el.classList.remove('show');
135135
invoke.invokeMethodAsync('EscCallback');
136136
}
137137
}

0 commit comments

Comments
 (0)