Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ks martenbohlin
  • Loading branch information...
commit 997dbb24a5f2995eac688bc17705f9f3e0559a47 1 parent bd9b75a
@gabrielschulhof gabrielschulhof authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 js/widgets/forms/select.custom.js
View
12 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 );
Please sign in to comment.
Something went wrong with that request. Please try again.