Skip to content

Commit 6ab1334

Browse files
QuyTonQuy
andauthored
[4.4] Fix help icon not opening help screen (#42820)
* Fix help icon not opening help screen * Revert "Fix help icon not opening help screen" This reverts commit 7a13d66. * Proper JS fix --------- Co-authored-by: Quy <[email protected]>
1 parent ce13d13 commit 6ab1334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/media_source/legacy/js/toolbar.es5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Joomla = window.Joomla || {};
4343
// Handle Help buttons
4444
document.querySelectorAll('.js-toolbar-help-btn').forEach((button) => {
4545
button.addEventListener('click', (event) => {
46-
const btn = event.target;
46+
const btn = event.currentTarget;
4747
const winprops = `height=${parseInt(btn.dataset.height, 10)},width=${parseInt(btn.dataset.width, 10)},top=${(window.innerHeight - parseInt(btn.dataset.height, 10)) / 2},`
4848
+ `left=${(window.innerWidth - parseInt(btn.dataset.width, 10)) / 2},scrollbars=${btn.dataset.width === 'true'},resizable`;
4949

0 commit comments

Comments
 (0)