!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:
Argo 2022-12-19 15:54:16 +00:00
parent fd7fbbb078
commit f4ff2384ce
2 changed files with 9 additions and 1 deletions

View File

@ -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'">

View File

@ -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')
}
}
}