Skip to content

Commit 6ff8822

Browse files
committed
refactor: 重构销毁方法位置
1 parent 98115a9 commit 6ff8822

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ export function dispose(id) {
160160
EventHandler.off(input, 'keyup');
161161
EventHandler.off(input, 'blur');
162162
Input.dispose(input);
163-
}
164163

165-
const { AutoComplete } = window.BootstrapBlazor;
166-
AutoComplete.dispose(id, () => {
167-
EventHandler.off(document, 'click', ac.closePopover);
168-
});
164+
const { AutoComplete } = window.BootstrapBlazor;
165+
AutoComplete.dispose(id, () => {
166+
EventHandler.off(document, 'click', ac.closePopover);
167+
});
168+
}
169169
}
170170

171171
const scrollIntoView = (el, item) => {

0 commit comments

Comments
 (0)