Merge pull request #39066 from KerollesFathy/fix/desktop-modal-heading-close

This commit is contained in:
Soham Kulkarni 2026-05-03 22:27:15 +05:30 committed by GitHub
commit 4d850046a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1163,6 +1163,11 @@ class DesktopModal {
this.modal.find(".modal-dialog").attr("id", "desktop-modal");
this.modal.find(".modal-body").addClass("desktop-modal-body");
this.$child_icons_wrapper = this.modal.find(".desktop-modal-body");
this.modal.find(".desktop-modal-heading").on("click", (e) => {
if (!$(e.target).closest(".modal-title").length) {
this.hide();
}
});
} else {
this.modal.find(".modal-title").text(icon_title);
$(this.modal.find(".modal-body")).empty();