Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork149
Closed
Description
- Operating system and version (Windows, macOS, Android, iOS) - macOS
- Browser and version (Chrome, Firefox, Safari, Microsoft Edge, Opera, Android Browser) - chrome 136.0.7103.114
- Areduced test case or suggested fix usingCodePen orJS Bin
<button[cModalToggle]="myModal.id"cButton><c-modalid="myModal"#myModal[backdrop]="false"alignment="center"> <c-modal-footer> <button[cModalToggle]="myModal.id"cButtoncolor="secondary">close</button> </c-modal-footer></c-modal>
When thec-modal
is activated and then closed using the close button, the body scroll disappears.
This issue occurs because theBackdropService
callshideScrollbar()
but does not callresetScrollbar()
. WhilehideScrollbar()
is triggered during the animation regardless of whetherbackdrop="false"
is set,resetScrollbar()
is not.
This behavior needs to be fixed.