diff options
| author | bndw <ben@bdw.to> | 2021-07-11 11:26:44 -0700 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2021-07-11 11:26:44 -0700 |
| commit | 1924298335692eebc79266fe1000895a136defd9 (patch) | |
| tree | d889c5b2a95f2c816a897b618787ad25afab8095 | |
| parent | 31f82e8918ba20549ab573b88148f4c96b5c0063 (diff) | |
Disable autocorrections on input fields
| -rw-r--r-- | src/components/Card.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/Card.js b/src/components/Card.js index 4ec4430..7d24f88 100644 --- a/src/components/Card.js +++ b/src/components/Card.js | |||
| @@ -71,6 +71,10 @@ export const Card = () => { | |||
| 71 | type="text" | 71 | type="text" |
| 72 | maxLength="32" | 72 | maxLength="32" |
| 73 | placeholder="WiFi Network name" | 73 | placeholder="WiFi Network name" |
| 74 | autoComplete="off" | ||
| 75 | autoCorrect="off" | ||
| 76 | autoCapitalize="none" | ||
| 77 | spellCheck="false" | ||
| 74 | value={network.ssid} | 78 | value={network.ssid} |
| 75 | onChange={(e) => setNetwork({ ...network, ssid: e.target.value })} | 79 | onChange={(e) => setNetwork({ ...network, ssid: e.target.value })} |
| 76 | /> | 80 | /> |
| @@ -84,6 +88,10 @@ export const Card = () => { | |||
| 84 | }} | 88 | }} |
| 85 | maxLength="63" | 89 | maxLength="63" |
| 86 | placeholder="Password" | 90 | placeholder="Password" |
| 91 | autoComplete="off" | ||
| 92 | autoCorrect="off" | ||
| 93 | autoCapitalize="none" | ||
| 94 | spellCheck="false" | ||
| 87 | value={network.password} | 95 | value={network.password} |
| 88 | onChange={(e) => | 96 | onChange={(e) => |
| 89 | setNetwork({ ...network, password: e.target.value }) | 97 | setNetwork({ ...network, password: e.target.value }) |
