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

Commit

Permalink
[custom select] Mark as closed after dialog closes - Re: #5195 - Than…
Browse files Browse the repository at this point in the history
…ks martenbohlin
  • Loading branch information
Gabriel Schulhof committed Oct 24, 2012
1 parent dfd2053 commit 82701e5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions js/jquery.mobile.forms.select.custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,14 @@ define( [
});
}

self.menuPage.one( "pageshow", function() {
focusMenuItem();
self.isOpen = true;
});
self.menuPage
.one( "pageshow", function() {
focusMenuItem();
self.isOpen = true;
})
.one( "pagehide", function() {
self.isOpen = false;
});

self.menuType = "page";
self.menuPageContent.append( self.list );
Expand Down

0 comments on commit 82701e5

Please sign in to comment.