Fix a cross origin frame issue with dropdowns
This commit is contained in:
parent
24f66b7e3f
commit
757ae7a3ad
@ -1025,9 +1025,13 @@ define([
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var state = $innerblock.is(':visible');
|
var state = $innerblock.is(':visible');
|
||||||
$('.dropdown-bar-content').hide();
|
$('.dropdown-bar-content').hide();
|
||||||
$('iframe').each(function (idx, ifrw) {
|
try {
|
||||||
$(ifrw).contents().find('.dropdown-bar-content').hide();
|
$('iframe').each(function (idx, ifrw) {
|
||||||
});
|
$(ifrw).contents().find('.dropdown-bar-content').hide();
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
// empty try catch in case this iframe is problematic (cross-origin)
|
||||||
|
}
|
||||||
if (state) {
|
if (state) {
|
||||||
$innerblock.hide();
|
$innerblock.hide();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user