this repo has no description
0
fork

Configure Feed

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

autofocus filter input

Juliet 19071027 8b04a121

+13 -2
+1 -1
src/components/text-input.tsx
··· 1 1 export interface TextInputProps { 2 - ref?: HTMLInputElement; 2 + ref?: HTMLInputElement | ((el: HTMLInputElement) => void); 3 3 class?: string; 4 4 id?: string; 5 5 type?: "text" | "email" | "password" | "search" | "tel" | "url";
+12 -1
src/views/repo.tsx
··· 3 3 import { DidDocument } from "@atcute/identity"; 4 4 import { ActorIdentifier, Did, Handle } from "@atcute/lexicons"; 5 5 import { A, useLocation, useNavigate, useParams } from "@solidjs/router"; 6 - import { createResource, createSignal, ErrorBoundary, For, Show, Suspense } from "solid-js"; 6 + import { 7 + createResource, 8 + createSignal, 9 + ErrorBoundary, 10 + For, 11 + onMount, 12 + Show, 13 + Suspense, 14 + } from "solid-js"; 7 15 import { createStore } from "solid-js/store"; 8 16 import { Backlinks } from "../components/backlinks.jsx"; 9 17 import { ActionMenu, DropdownMenu, MenuProvider, NavMenu } from "../components/dropdown.jsx"; ··· 230 238 placeholder="Filter collections" 231 239 onInput={(e) => setFilter(e.currentTarget.value.toLowerCase())} 232 240 class="grow" 241 + ref={(node) => { 242 + onMount(() => node.focus()); 243 + }} 233 244 /> 234 245 </Show> 235 246 <div class="flex flex-col overflow-hidden text-sm">