Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix to #3351, dialogs reopening when attempting to close them

  • Loading branch information...
commit 25b8080caf27b256e4bf53f83ce745c8b2195efc 1 parent 187cc06
Josh Dean authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/
5 js/
@@ -33,7 +33,10 @@ $.widget( "mobile.dialog", $.mobile.widget, {
// this must be an anonymous function so that select menu dialogs can replace
// the close method. This is a change from previously just defining data-rel=back
// on the button and letting nav handle it
- headerCloseButton.bind( "vclick", function() {
+ //
+ // Use click rather than vclick in order to prevent the possibility of unintentionally
+ // reopening the dialog if the dialog opening item was directly under the close button.
+ headerCloseButton.bind( "click", function() {
Please sign in to comment.
Something went wrong with that request. Please try again.