From 33372d8e6d86eac24743fa2234005864fb10220d Mon Sep 17 00:00:00 2001 From: Manan Patel Date: Tue, 28 Jan 2025 17:03:59 +0530 Subject: [PATCH 1/3] Fixed new image uploading issue in pagebuilder --- .../Magento/Ui/view/base/web/js/form/element/file-uploader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js b/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js index ef4c61260fb7e..a356b9aff9851 100644 --- a/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js +++ b/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js @@ -182,6 +182,9 @@ define([ $('#' + fileId).closest('.file-uploader-area').find('.file-uploader-button:first').on('click', function () { $('#' + fileId).closest('.file-uploader-area').find('.uppy-Dashboard-browse').trigger('click'); }); + $('#' + fileId).closest('.pagebuilder-image-uploader-container').find('.pagebuilder-options .file-uploader-button:first').on('click', function () { + $('#' + fileId).closest('.file-uploader-area').find('.uppy-Dashboard-browse').trigger('click'); + }); }, /** From 768edf89ccf66c30d94dcbc63e6943e90060633a Mon Sep 17 00:00:00 2001 From: Manan Patel Date: Fri, 14 Feb 2025 15:55:44 +0530 Subject: [PATCH 2/3] Fixed static tests --- .../Ui/view/base/web/js/form/element/file-uploader.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js b/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js index a356b9aff9851..78b003f1d03ad 100644 --- a/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js +++ b/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js @@ -182,9 +182,12 @@ define([ $('#' + fileId).closest('.file-uploader-area').find('.file-uploader-button:first').on('click', function () { $('#' + fileId).closest('.file-uploader-area').find('.uppy-Dashboard-browse').trigger('click'); }); - $('#' + fileId).closest('.pagebuilder-image-uploader-container').find('.pagebuilder-options .file-uploader-button:first').on('click', function () { - $('#' + fileId).closest('.file-uploader-area').find('.uppy-Dashboard-browse').trigger('click'); - }); + $('#' + fileId).closest('.pagebuilder-image-uploader-container') + .find('.pagebuilder-options .file-uploader-button:first') + .on('click', function () { + $('#' + fileId).closest('.file-uploader-area').find('.uppy-Dashboard-browse').trigger('click'); + } + ); }, /** From 8104a9d938d66d85e834a607a8a418fb183f9ef1 Mon Sep 17 00:00:00 2001 From: Manan Patel Date: Tue, 18 Feb 2025 10:27:21 +0530 Subject: [PATCH 3/3] Fixed static tests --- .../Magento/Ui/view/base/web/js/form/element/file-uploader.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js b/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js index 78b003f1d03ad..508101d5d9cb6 100644 --- a/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js +++ b/app/code/Magento/Ui/view/base/web/js/form/element/file-uploader.js @@ -186,8 +186,7 @@ define([ .find('.pagebuilder-options .file-uploader-button:first') .on('click', function () { $('#' + fileId).closest('.file-uploader-area').find('.uppy-Dashboard-browse').trigger('click'); - } - ); + }); }, /**