Skip to content

Second level and above stackable modals issue #263

Open
@gunjanvarshney

Description

@gunjanvarshney

Hello,

I am trying to use this jQuery plugin to create stackable modals. what is important to me is that original parent (the plugin code appends the new opened modals to body). The requirement is that I have to select modal from a click of the button within modal content. that button is in a iframe source within the modal (opened). to select iframe (on click of button) I use window.frameElement and then use jquery 'closest' function to get the modal.

I figured that the parent of the modal could be queried through jQuery data using 'modal' as the key. what I found was that all the modals are actually appended on top window body the modal data get lost as the modal data was saved (when initially modal was shown) to first / parent modals jQuery instance context. while now the window.parent == window.top on second level modal.

is there any way out.

Thanks,
Gunjan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions