diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-15 19:12:48 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-15 19:14:02 +0200 |
| commit | a44f2de806d0557b148dcdf36a3107cb4ecf31ce (patch) | |
| tree | 9868794be4dbf2be820add96dae560f95369fce9 /app/components.js | |
| parent | 64acc82b9634d948517ec5bb2ebe5a33cdf22df6 (diff) | |
| download | housing-a44f2de806d0557b148dcdf36a3107cb4ecf31ce.tar.zst | |
Minor fixes
Diffstat (limited to 'app/components.js')
| -rw-r--r-- | app/components.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/components.js b/app/components.js index e1506a3..72c0595 100644 --- a/app/components.js +++ b/app/components.js @@ -789,7 +789,7 @@ export class Sidebar { children: [ Dom.heading( 3, - "Map Colors", + "Visualisation parameters", new DomOptions({ styles: { color: "#333", @@ -1303,7 +1303,7 @@ export class Modal { this.#dialog.append( Dom.button( "x", - () => this.hide(), + () => this.remove(), new DomOptions({ id: "close-modal-btn", styles: { @@ -1322,7 +1322,7 @@ export class Modal { ); // Add event listeners with AbortController - this.#dialog.addEventListener("close", () => this.hide(), { + this.#dialog.addEventListener("close", () => this.remove(), { signal: this.#abortController.signal, }); this.#dialog.addEventListener( @@ -1337,7 +1337,7 @@ export class Modal { "mouseleave", () => { if (!this.#persistent) { - this.#timer = window.setTimeout(() => this.hide(), 200); + this.#timer = window.setTimeout(() => this.remove(), 200); } }, { signal: this.#abortController.signal }, @@ -1568,7 +1568,7 @@ export class Modal { } } - hide() { + remove() { clearTimeout(this.#timer); this.#dialog.close(); this.#dialog.remove(); |
