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

panels do not honour data-dismissible #7036

Open
mathieubenard opened this issue Jan 31, 2014 · 2 comments
Open

panels do not honour data-dismissible #7036

mathieubenard opened this issue Jan 31, 2014 · 2 comments

Comments

@mathieubenard
Copy link

When instantiating a new panel with data-dismissible it would be ideal not register the events ['keyup.panel', 'pagehide', 'swipeleft.panel', 'swiperight.panel', etc..]. Also it would be useful to be able to unregister the event on element level rather than on page or document level. If required i can make a pull request implementing a fix.

@apsdehal
Copy link
Contributor

You can use .off function to unregister the events on the element. Also as mentioned on http://api.jquerymobile.com/panel/#option-dismissible dismissible is specifically about clicking so we can't really not register the events you mentioned. Though, I will pick up this issue in this week's meeting. Closing as of now.

@arschmitz
Copy link
Contributor

This should be fixed

@arschmitz arschmitz reopened this May 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
3 participants