a tiny atproto handle typeahead web component
atproto bluesky

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.

Labels

None yet.

Participants 3
AT URI
at://did:plc:35kdk2ntcs626zs6cm62i7ih/sh.tangled.repo.pull/3m63nyysm4422
+1 -1
Diff #0
+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 }

History

1 round 2 comments
sign up or login to add to the discussion
jolheiser.com submitted #0
1 commit
expand
8e199bb2
fix enter button to select
expand 2 comments

just came here to open an issue about the same, thanks for opening a PR!

thank you so much! sorry about that

pull request successfully merged