RC1 fixes

This commit is contained in:
Pax1601
2023-12-05 11:26:18 +01:00
parent 24a1681337
commit 8f2f73dc0e
11 changed files with 108 additions and 86 deletions

View File

@@ -26,7 +26,7 @@ export class Dropdown {
if (options != null) this.setOptions(options);
this.#value.addEventListener("click", (ev) => { this.#toggle(); });
(this.#container.querySelector(".ol-select-value") as HTMLElement)?.addEventListener("click", (ev) => { this.#toggle(); });
document.addEventListener("click", (ev) => {
if (!(this.#value.contains(ev.target as Node) || this.#options.contains(ev.target as Node) || this.#container.contains(ev.target as Node))) {