Skip to content

Commit

Permalink
Fixed error message when closing add module modal. (#29771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmageddon committed Jun 24, 2020
1 parent c1c9bce commit a12bfc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/media_source/com_cpanel/js/admin-add_module.es6.js
Expand Up @@ -50,8 +50,11 @@ Joomla = window.Joomla || {};

const iframe = document.querySelector('#moduleDashboardAddModal iframe');
const content = iframe.contentDocument || iframe.contentWindow.document;
const targetBtn = content.querySelector(clickTarget);

content.querySelector(clickTarget).click();
if (targetBtn) {
targetBtn.click();
}
}
});
});
Expand Down

0 comments on commit a12bfc3

Please sign in to comment.