Permalink
Browse files

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

…ks martenbohlin
  • Loading branch information...
1 parent 4bbe7c6 commit f01759819144e4cd38a9704c48c32b2250308648 @gabrielschulhof gabrielschulhof committed Oct 24, 2012
Showing with 8 additions and 4 deletions.
  1. +8 −4 js/widgets/forms/select.custom.js
@@ -379,10 +379,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 f017598

Please sign in to comment.