mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 13:39:39 +08:00
!3636 fix(#I66R0I): update drawer js module for auto remove the body style when component dispose
* chore: bump version 7.1.8-beta01 * fix: update drawer js module for auto remove the body style when compo…
This commit is contained in:
parent
fd7fbbb078
commit
f4ff2384ce
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>7.1.7</Version>
|
||||
<Version>7.1.8-beta01</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
|
||||
|
@ -29,4 +29,12 @@ export class Drawer extends BlazorComponent {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_dispose() {
|
||||
if (this._element.classList.contains('show')) {
|
||||
this._element.classList.remove('show')
|
||||
this._drawerBody.classList.remove('show')
|
||||
this._body.classList.remove('overflow-hidden')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user