Skip to content

Commit 2be48e3

Browse files
authored
Merge pull request #532 from peanutprotocol/fix/autocorrect-on-address-input
[TASK-6944] fix: disable autocorrect on address input
2 parents 195c4a7 + cbe99b3 commit 2be48e3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/components/Global/RecipientInput/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const RecipientInput = ({ placeholder, value, setValue, onEnter }: RecipientInpu
2020
type="text"
2121
placeholder={placeholder}
2222
spellCheck="false"
23+
autoCorrect="off"
24+
autoCapitalize="off"
25+
autoComplete="off"
2326
value={value}
2427
onChange={(e) => setValue(e.target.value)}
2528
onKeyDown={(e) => {

src/components/Global/ValidatedInput/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ const ValidatedInput = ({
8585
bg-white px-4 pl-8 text-h8 font-medium outline-none placeholder:text-sm focus:border-purple-1 dark:border-white dark:bg-n-1 dark:text-white dark:placeholder:text-white/75 dark:focus:border-purple-1`}
8686
placeholder={placeholder}
8787
spellCheck="false"
88+
autoCorrect="off"
89+
autoCapitalize="off"
90+
autoComplete="off"
8891
/>
8992
{value &&
9093
(isValidating ? (

0 commit comments

Comments
 (0)