Skip to content

Commit e5e23a8

Browse files
author
Stanislav Idolov
committed
magento/adobe-stock-integration#935 : Loader stays over the media gallery if it was opened second time from different control on the same page
1 parent c839ecc commit e5e23a8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/image-uploader.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,15 @@ define([
8181
openDialogUrl += '&current_tree_path=' + Base64.mageEncode(this.mediaGallery.initialOpenSubpath);
8282
}
8383

84-
browser.openDialog(openDialogUrl, null, null, this.mediaGallery.openDialogTitle);
84+
browser.openDialog(
85+
openDialogUrl,
86+
null,
87+
null,
88+
this.mediaGallery.openDialogTitle,
89+
{
90+
targetElementId: $buttonEl.attr('id')
91+
}
92+
);
8593
},
8694

8795
/**

0 commit comments

Comments
 (0)