Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

[Feature Request] Prevent popup close when tapping/clicking outside of the popup box #4961

Closed
erez-rabih opened this issue Sep 9, 2012 · 8 comments

Comments

@erez-rabih
Copy link

Hi everyone,

I hope I'm not missing something very basic here but that's my request:

When I open a popup, I want that clicks outside of the popup box won't close it, so the user must choose an option of the popup before the application responds to any interaction.

I'd be glad to implement it myself, just thought to post a message here to verify it is not present in current version, and there's no obvious way to achieve it.

Thnx in advance

@MauriceG
Copy link
Contributor

MauriceG commented Sep 9, 2012

Hi @erez-rabih !

You've missed nothing. Until now, preventing a popup from closing has not been implemented.
There is already a feature request for this functionality #4727
and it's also in the wiki at https://github.com/jquery/jquery-mobile/wiki/Feature-Requests.

Maurice

@ghost ghost assigned gabrielschulhof Oct 4, 2012
@toddparker
Copy link
Contributor

We're going to add this feature in 1.3. This will be a boolean option that defaults to true. We need to work out a clear option name for this since clickOverlayToClosePopup is a wee bit long.

@agcolom
Copy link
Contributor

agcolom commented Oct 4, 2012

clickOutToClose, ordinaryClose, standardClose... (1st ideas...)

@MauriceG
Copy link
Contributor

MauriceG commented Oct 4, 2012

may data-modal, but this has to be false by default

@gabrielschulhof
Copy link

Implemented in 352fb0b.

@toddparker
Copy link
Contributor

New option: "dismissable": default: true
http://jquerymobile.com/test/docs/pages/popup/options.html

Demo in the "Closing Popups" section
http://jquerymobile.com/test/docs/pages/popup/index.html

@toddparker
Copy link
Contributor

@agcolom - we need to update the API docs with this change.

@toddparker
Copy link
Contributor

I just saw this is already added:
http://stage.api.jquerymobile.com/popup/#option-dismissable

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

No branches or pull requests

5 participants