mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-30 19:04:43 +00:00
fixed issue with select menus not opening again after you close them.
This commit is contained in:
parent
7ba7315e27
commit
61bee4e276
2 changed files with 4 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
|
|||
}
|
||||
})
|
||||
//destroy the dialog after hiding
|
||||
.bind("pagehide",function(){
|
||||
.bind("pagehide.dialog",function(){
|
||||
self.destroy();
|
||||
$(this).remove();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -160,6 +160,9 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
$(this).blur();
|
||||
button.focus();
|
||||
});
|
||||
|
||||
//unbind dialog destroy on close
|
||||
menuPage.unbind("pagehide.dialog");
|
||||
|
||||
//button events
|
||||
button
|
||||
|
|
|
|||
Loading…
Reference in a new issue