mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-03 12:39:40 +08:00
fix(Dialog): do not remove when browser go back/forward (#3816)
* fix: 修复浏览器后退前进时弹窗不消失问题 * chore: bump version 8.7.2-beta03
This commit is contained in:
parent
824d08edcf
commit
d64937744d
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>8.7.2-beta02</Version>
|
||||
<Version>8.7.2-beta03</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
|
||||
|
@ -9,13 +9,8 @@ export function init(id, invoke, shownCallback, closeCallback) {
|
||||
shownCallback,
|
||||
closeCallback,
|
||||
pop: () => {
|
||||
if (modal.modal) {
|
||||
modal.modal._dialog.remove()
|
||||
modal.modal.dispose()
|
||||
modal.modal = null
|
||||
document.body.classList.remove('modal-open');
|
||||
document.body.style.paddingRight = '';
|
||||
document.body.style.overflow = '';
|
||||
if (modal) {
|
||||
modal.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user