Permalink
Browse files

[custom select] Mark as closed after dialog closes - Re: #5195 - Than…

…ks martenbohlin
  • Loading branch information...
1 parent dfd2053 commit 82701e5dbe12c16e4ac92379943628859491ed96 @gabrielschulhof gabrielschulhof committed Oct 24, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 js/jquery.mobile.forms.select.custom.js
@@ -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 );

0 comments on commit 82701e5

Please sign in to comment.