You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior
If you open multiple modals and try to close all of them, it won't remove dialog-open class from body. As a result modals disappear but scrollbar stays not visible.
Expected behavior
Invoking closeAll() or close() for all opened modals should remove dialog-open class from body.
Click Close Modal 1 and Modal 2 or Close All Modals button
Try scroll
What is the motivation / use case for changing the behavior?
Sometimes modal contains information and action buttons inside. When we click action button inside modal we may want to ask user for extra confirmation. For example offer details modal and delete button inside. User can missclick and press delete button, so we want warn him about his actions. After user confirmation we close all modals but it would break layout.
Please tell us about your environment:
Smart Modal version: 7.4.0
Angular version: 9.0.5 and 11.0.8
Browser: all
Language: all
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Current behavior
If you open multiple modals and try to close all of them, it won't remove
dialog-open
class frombody
. As a result modals disappear but scrollbar stays not visible.Expected behavior
Invoking
closeAll()
orclose()
for all opened modals should removedialog-open
class frombody
.Reproduction of the problem
Demo: https://stackblitz.com/edit/angular-ivy-v9oc5n
Open Modal 1
buttonOpen Modal 2
buttonClose Modal 1 and Modal 2
orClose All Modals
buttonWhat is the motivation / use case for changing the behavior?
Sometimes modal contains information and action buttons inside. When we click action button inside modal we may want to ask user for extra confirmation. For example offer details modal and delete button inside. User can missclick and press delete button, so we want warn him about his actions. After user confirmation we close all modals but it would break layout.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: