Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: trigger sign-in when clicking a handle suggestion

Selecting a suggestion from the typeahead dropdown now immediately
starts the OAuth flow instead of just filling the input.

+3 -2
+3 -2
src/landing-events-identity.ts
··· 55 55 input.setAttribute('aria-expanded', 'true'); 56 56 } 57 57 58 - function attachTypeahead(input: HTMLInputElement): void { 58 + function attachTypeahead(input: HTMLInputElement, confirmBtn: HTMLButtonElement): void { 59 59 const dropdown = createSuggestionsDropdown(input); 60 60 let activeIndex = -1; 61 61 let currentResults: HandleSuggestion[] = []; ··· 66 66 input.setAttribute('aria-expanded', 'false'); 67 67 currentResults = []; 68 68 activeIndex = -1; 69 + confirmBtn.click(); 69 70 } 70 71 71 72 function updateActive(): void { ··· 141 142 } 142 143 143 144 export function attachUsernameListeners(deps: EventDeps): void { 144 - attachTypeahead(deps.usernameInput); 145 + attachTypeahead(deps.usernameInput, deps.usernameConfirm); 145 146 146 147 deps.usernameConfirm.addEventListener('click', () => { 147 148 const handle = deps.usernameInput.value.trim().replace(/^@/, '');