Skip to content

Commit

Permalink
(feat/widget): autofocus input
Browse files Browse the repository at this point in the history
  • Loading branch information
ManishMadan2882 committed Nov 20, 2024
1 parent a6bface commit e9a8161
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/react-widget/src/components/DocsGPTWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ export const WidgetCore = ({
<PromptContainer
onSubmit={handleSubmit}>
<StyledInput
autoFocus
value={prompt} onChange={(event) => setPrompt(event.target.value)}
type='text' placeholder="Ask your question" />
<StyledButton
Expand Down

0 comments on commit e9a8161

Please sign in to comment.