Skip to content

Commit 98d7a5a

Browse files
committed
refactor: 更新脚本
1 parent f93cb6f commit 98d7a5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapBlazor/Components/Modal/Modal.razor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ export function dispose(id) {
154154
}
155155

156156
const backupBodyStyle = modal => {
157-
if(modal.originalStyle === void 0) {
157+
if (modal.originalStyle === null) {
158158
modal.originalStyle = document.body.style.cssText;
159159
}
160160
}
161161

162162
const restoreBodyStyle = modal => {
163-
if(modal.originalStyle !== void 0) {
163+
if (modal.originalStyle !== null) {
164164
document.body.style.cssText = modal.originalStyle;
165165
delete modal.originalStyle;
166166
}

0 commit comments

Comments
 (0)