From b7b8f17b2ac183c573111c03ac16f3d08d87028b Mon Sep 17 00:00:00 2001 From: Minh-Phuc Tran <25026967+phuctm97@users.noreply.github.com> Date: Wed, 16 Feb 2022 13:07:24 +0700 Subject: [PATCH] fix: auto-focus input --- pages/[[...slug]].tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/[[...slug]].tsx b/pages/[[...slug]].tsx index 03db78f..d2e72f6 100644 --- a/pages/[[...slug]].tsx +++ b/pages/[[...slug]].tsx @@ -153,6 +153,9 @@ const Index: NextPage = ({ 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) =>