Fix enter-to-select #1

merged
opened by jolheiser.com targeting main

Removing the click event handler broke enter-to-select. This patch just dispatches the pointerup event instead.

Changed files
+1 -1
+1 -1
actor-typeahead.js
···
case "Enter":
evt.preventDefault();
-
this.#shadow.querySelectorAll("button")[this.#index]?.click();
+
this.#shadow.querySelectorAll("button")[this.#index]?.dispatchEvent(new PointerEvent("pointerup", { bubbles: true }));
break;
}
}