Open
Description
Preconditions and environment
- Mage 2.4.7
- comes with [email protected]
Steps to reproduce
- Open an email template preview (newsletter module)
- Try to open the store switcher
Expected result
An opened store switcher
Actual result
Click is ignored, nothing happens.
Additional information
Magento/Module_Newsletter/view/adminhtml/templates/preview/iframeswitcher.phtml
is containing deprecated jQuery 'onload' code.
Currently:
jQuery("#preview_iframe").load(function() {
jQuery(this).height(jQuery(this).contents().find("html").height() );
});
Needs to be:
jQuery("#preview_iframe").on('load', function() {
jQuery(this).height(jQuery(this).contents().find("html").height() );
});
Furthermore there needs to be checked where ).load(
is still being used.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.