Skip to content

Commit

Permalink
added autocapitalize=off to user name and journal input fields
Browse files Browse the repository at this point in the history
  • Loading branch information
majorpeter committed Feb 13, 2024
1 parent c9f5904 commit e88c153
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/pages/Dashboard/JournalEditorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const JournalEditorModal: React.FC = () => {
textarea: {
ref: textAreaRef,
autoFocus: true,
autocapitalize: "off",
},
}}
value={userInput || data?.text}
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/pages/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ const LoginPage: React.FC = () => {
)}
<FormControl>
<FormLabel>Username</FormLabel>
<Input name="userName" autoFocus />
<Input
name="userName"
autoFocus
slotProps={{ input: { autoCapitalize: "off" } }}
/>
</FormControl>
<FormControl>
<FormLabel>Password</FormLabel>
Expand Down

0 comments on commit e88c153

Please sign in to comment.