Skip to content
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

Stacking modals #73

Open
RamyTalal opened this issue Feb 11, 2015 · 12 comments
Open

Stacking modals #73

RamyTalal opened this issue Feb 11, 2015 · 12 comments
Labels

Comments

@RamyTalal
Copy link

Is it possible to stack multiple modals?

@vodkabears
Copy link
Owner

No, only one opened modal can be on a page.

@RamyTalal
Copy link
Author

Is it an idea for the future?

@vodkabears
Copy link
Owner

That's...strange. Remodal does it deliberately to avoid stack of modals.

@RamyTalal
Copy link
Author

Okay. I thought it would be handy. I've attached an example.
stacked-boostrap-modal-correct

@AlecRust
Copy link
Contributor

This would be a good feature, but only one level deep. See Facebook, Pinterest etc.

screenshot 2015-03-13 16 45 30

screenshot 2015-03-13 16 51 12

@antstorm
Copy link
Contributor

Here's some initial work to support this #95

@haydnhkim
Copy link

+1

@PoeHaH
Copy link

PoeHaH commented Jun 20, 2015

+1 :)

@HTMLGuyLLC
Copy link

There are stackable modals in jAlert http://flwebsites.biz/jAlert/

@solepixel
Copy link

+1

@solepixel
Copy link

solepixel commented Sep 17, 2016

As an alternative solution, I ended up just loading an element inside the current modal, sans the close button. It's a bit confusing when you click the close button and both close, but other than that it seems to work ok.

@2ik 2ik mentioned this issue Apr 10, 2018
@apoorva-shah
Copy link

apoorva-shah commented May 23, 2018

Is there any js fiddle or pen for multiple modals in same page? I want to open popup then in popup there will be a button which will open another popup. so after second popup close first popup should not close.

Can any one please a fiddle that provide solution open modal from inside modal and when i close second first modal must be opened.

var c1 = $('[data-remodal-id=first_block]').remodal({ 'appendTo': $('.form-setup'), 'stack':true,hashTracking: false });

var p1 = $('[data-remodal-id=video_popup]').remodal({ 'appendTo': $('.youtube-video'), 'stack':true, hashTracking: false });

On c1.open() first modal opens,
then if do p1.open() then popup c1 closes automatically. I want p1 modal above c1 modal.

So when i close p1 modal c1 modal must be open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants