Skip to content

Commit e3edf87

Browse files
committed
refactor: 删除冗余代码
1 parent 98d7a5a commit e3edf87

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ export function init(id, invoke, shownCallback, closeCallback) {
2222
})
2323
EventHandler.on(el, 'hidden.bs.modal', e => {
2424
e.stopPropagation();
25-
if (modal.draggable) {
26-
modal.dialog.style.width = ''
27-
modal.dialog.style.margin = ''
28-
29-
EventHandler.off(modal.dialog, 'mousedown')
30-
EventHandler.off(modal.dialog, 'touchstart')
31-
}
3225
invoke.invokeMethodAsync(closeCallback)
3326
})
3427
EventHandler.on(window, 'popstate', modal.pop)

0 commit comments

Comments
 (0)