-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable stacking: Close current modal when calling another #146
Comments
You can use stacked modals for it with which it should work by default: https://github.com/drublic/css-modal/blob/master/modal.js#L210 Third option, if you use it to display images or similar things, there’s a gallery plugin in the plugins folder. This takes care of displaying a prev/next navigation and uses only one modal for the different contents. Does that answer your question? |
Am i able to prevent stacking of modals? |
Exactly what Robertfausk says, I want to close the current modal when calling a new modal. So disable stacking of modals if possible? |
Will look into it for 1.2.0. If you find the time and have the knowledge, I'd appreciate input on the implementation (data-attribute…). |
It is possible to not stack modals when opening them from another modal now by applying a data attribute: `data-stackable="false"`. This option is `true` by default. Reference #146.
It is possible to not stack modals when opening them from another modal now by applying a data attribute: `data-stackable="false"`. This option is `true` by default. Reference #146.
Implementation done in #168. Please have a look. |
Since it's done, i've closed this issue now. |
Is it possible to close the current modal when calling a new modal from within the current one?
The problem now is when I close the current modal the previous modal will be active beneath it. I added prev/next buttons into the modals for navigating purpose.
The text was updated successfully, but these errors were encountered: