From 1c28b7064d166cc57a43cbc8c4071a76b59a3f27 Mon Sep 17 00:00:00 2001 From: Roan <29734170+14ROVI@users.noreply.github.com> Date: Mon, 8 Sep 2025 03:56:53 +0100 Subject: [PATCH] Close modal when clicking outside the modal (#2017) ## Description: Small QoL update where when you click outside of the main content of the modal it closes the modal. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: rovi. Co-authored-by: evanpelle --- src/client/components/baseComponents/Modal.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/components/baseComponents/Modal.ts b/src/client/components/baseComponents/Modal.ts index ae58d9078..4c5042aad 100644 --- a/src/client/components/baseComponents/Modal.ts +++ b/src/client/components/baseComponents/Modal.ts @@ -85,8 +85,9 @@ export class OModal extends LitElement { return html` ${this.isModalOpen ? html` -