Launcher: fix issue with help modal close button not working
Change-Id: I695b7116df42156a48825880ad50314490cc4d9a
diff --git a/core/installer/welcome/static/launcher.js b/core/installer/welcome/static/launcher.js
index bcc16e0..8dd4b81 100644
--- a/core/installer/welcome/static/launcher.js
+++ b/core/installer/welcome/static/launcher.js
@@ -106,8 +106,8 @@
document.addEventListener("click", (event) => {
if (visibleModal === null) return;
const modalContent = visibleModal.querySelector("article");
- const isClickInside = modalContent.contains(event.target);
- if (!isClickInside) {
+ const closeButton = visibleModal.querySelector(".close-button");
+ if (!modalContent.contains(event.target) || closeButton.contains(event.target)) {
closeModal(visibleModal);
}
});