Skip to content

Commit

Permalink
Disable spell check on attempt fields to avoid underlined DNF and DNS.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Sep 8, 2019
1 parent 9b54038 commit 3f494c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -19,6 +19,7 @@ const CubesField = ({ initialValue, onValue, ...props }) => {
fullWidth
variant="outlined"
value={value || ''}
spellCheck={false}
onChange={event => {
const newValue = toInt(event.target.value.replace(/\D/g, '')) || 0;
if (newValue <= 99) setValue(newValue);
Expand Down
Expand Up @@ -31,6 +31,7 @@ const FmField = ({ initialValue, onValue, ...props }) => {
fullWidth
variant="outlined"
value={numberToInput(value)}
spellCheck={false}
onChange={event => {
const input = event.target.value;
if (input.includes('d') || input.includes('/')) {
Expand Down
Expand Up @@ -59,6 +59,7 @@ const TimeField = ({ initialValue, onValue, ...props }) => {
fullWidth
variant="outlined"
value={input}
spellCheck={false}
onChange={event => setInput(reformatInput(event.target.value))}
onBlur={() => {
const attempt =
Expand Down

0 comments on commit 3f494c6

Please sign in to comment.