Permalink
Browse files

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

…ks martenbohlin
1 parent bd9b75a commit 997dbb24a5f2995eac688bc17705f9f3e0559a47 @gabrielschulhof gabrielschulhof committed Oct 24, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 js/widgets/forms/select.custom.js
@@ -376,10 +376,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 997dbb2

Please sign in to comment.