Skip to content

Commit

Permalink
Merge pull request #25 from jakewarren/issue-24
Browse files Browse the repository at this point in the history
Make search form automatically focus cursor
  • Loading branch information
mehaase authored Oct 17, 2022
2 parents e36c846 + 99f3b88 commit d1ecc70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SearchForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@
<form on:submit={(e) => e.preventDefault()}>
<div class="search-row">
<div class="form-floating">
<!-- svelte-ignore a11y-autofocus -->
<input
id="searchTerms"
type="text"
class="form-control"
placeholder="Search ATT&amp;CK…"
bind:value={query}
autofocus
/>
<label for="searchTerms">Search ATT&amp;CK…</label>
</div>
Expand Down

0 comments on commit d1ecc70

Please sign in to comment.