Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix: auto-focus input
Browse files Browse the repository at this point in the history
  • Loading branch information
phuctm97 committed Feb 16, 2022
1 parent 0029eab commit b7b8f17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/[[...slug]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ const Index: NextPage<StaticProps> = ({ initialCommandString }) => {
name="command-string"
id="command-string"
value={commandString}
autoFocus
autoComplete="off"
autoCorrect="off"
spellCheck="false"
onChange={(e) => setCommandString(e.target.value.trimStart())}
onClick={(e) =>
Expand Down

1 comment on commit b7b8f17

@vercel
Copy link

@vercel vercel bot commented on b7b8f17 Feb 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.