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

Commit 9da71a4

Browse files
author
Gabriel Schulhof
committed
Popup: Do not proceed with _closePopup() if the popup is no longer the currently-open one. Fixes #6182.
1 parent 8adff44 commit 9da71a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ $.widget( "mobile.popup", {
758758
_closePopup: function( evt, data ) {
759759
var parsedDst, toUrl, opts = this.options, immediate = false;
760760

761-
if ( evt && evt.isDefaultPrevented() ) {
761+
if ( ( evt && evt.isDefaultPrevented() ) || $.mobile.popup.active !== this ) {
762762
return;
763763
}
764764

0 commit comments

Comments
 (0)