Skip to content

Commit 1f3ab3b

Browse files
committed
feat: 增加异常保护
1 parent 625b5f3 commit 1f3ab3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export function init(id, invoke, closeCallback) {
3939
}
4040
confirm.hide = () => {
4141
const popover = getDescribedElement(el)
42+
if (popover == null) {
43+
return;
44+
}
45+
4246
popover.classList.remove('show')
4347

4448
const children = popover.children

0 commit comments

Comments
 (0)