Git Product home page Git Product logo

Comments (6)

briceburg avatar briceburg commented on July 21, 2024

@jackysee ack -- I fear this behaviour is a causality of the rewrite. Are you able to work around this issue by passing modal: true to the second modal? E.g. http://plnkr.co/edit/rzRgCD0fgPWRR3YWx2EE?p=preview

from jqmodal.

jackysee avatar jackysee commented on July 21, 2024

Actually I'm using an much older version with the same problem. I'm seeking to see if the latest version can have this fix. The requirement is that the second modal can be discarded by clicking outside.

from jqmodal.

briceburg avatar briceburg commented on July 21, 2024

Got it. One way would be to override the $.jqm.focusFunc . Give the second modal's overlay a special class, be sure the z-index of the second modal is greater than the overlays, and examine the event target (e) of $.jqm.focusFunc, if it is the second modal, return true. if it is the second modal's overlay, close the second modal.

from jqmodal.

jackysee avatar jackysee commented on July 21, 2024

I happened to patch fix the old version such that it will allow key/mouse events on higher layer. Don't know if this can apply to the rewrite version.
http://plnkr.co/edit/X2j1wKNnxTITHNrgdUO0?p=preview

from jqmodal.

jackysee avatar jackysee commented on July 21, 2024

Try to apply the logic to the rewrite version. Demonstrated here: http://plnkr.co/edit/93nfFuMG781Y0vVIf5UF?p=preview

Created a pull request: #11

from jqmodal.

briceburg avatar briceburg commented on July 21, 2024

@jackysee This was actually a very simple z-index issue. See:

http://plnkr.co/edit/dZ3dzir9QLNhUmgYEF7p?p=preview

I've also updated jqModal to 1.2.0 and pass the event along to the focus func, so things are fancy and flexible. For instance, see:

http://plnkr.co/edit/xsQX4v2Bo3Uqb6QML5Mh?p=preview

This should allow you to do anything you want.

Hope this helps!

from jqmodal.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.