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

Commit d0eb1b9

Browse files
author
Gabriel Schulhof
committed
Dialog: Render un-closeable during pagebeforehide. Fixes #5956.
(cherry picked from commit ae059a1)
1 parent 142f15f commit d0eb1b9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/widgets/dialog.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ $.widget( "mobile.dialog", $.mobile.widget, {
2828
}
2929
},
3030

31+
_handlePageBeforeHide: function() {
32+
this._isCloseable = false;
33+
},
34+
3135
_create: function() {
3236
var self = this,
3337
$el = this.element,
@@ -62,7 +66,8 @@ $.widget( "mobile.dialog", $.mobile.widget, {
6266
});
6367

6468
this._on( $el, {
65-
pagebeforeshow: "_handlePageBeforeShow"
69+
pagebeforeshow: "_handlePageBeforeShow",
70+
pagebeforehide: "_handlePageBeforeHide"
6671
});
6772

6873
$.extend( this, {

0 commit comments

Comments
 (0)