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
··· 214 214 215 215 case "Enter": 216 216 evt.preventDefault(); 217 - this.#shadow.querySelectorAll("button")[this.#index]?.click(); 217 + this.#shadow.querySelectorAll("button")[this.#index]?.dispatchEvent(new PointerEvent("pointerup", { bubbles: true })); 218 218 break; 219 219 } 220 220 }