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

Commit 571b4f3

Browse files
author
Gabriel Schulhof
committed
Custom select: Call the close() method upon "popupafterclose" by binding it via this._on().
1 parent 77143ac commit 571b4f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/widgets/forms/select.custom.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ $.widget( "mobile.selectmenu", $.mobile.selectmenu, {
248248
this._on( this.menuPage, { pagehide: "_handleMenuPageHide" } );
249249

250250
// Events on the popup
251-
this.listbox.bind( "popupafterclose", function() {
252-
self.close();
253-
});
251+
this._on( this.listbox, { popupafterclose: "close" } );
254252

255253
// Close button on small overlays
256254
if ( this.isMultiple ) {

0 commit comments

Comments
 (0)