Fix disabling spellcheck with <Input>
This commit is contained in:
parent
393b740fe6
commit
f9faf9b759
2 changed files with 12 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// Copyright 2021-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { ClipboardEvent, ReactNode } from 'react';
|
||||
|
@ -203,7 +203,7 @@ export const Input = forwardRef<
|
|||
isLarge && getClassName('__input--large')
|
||||
),
|
||||
disabled: Boolean(disabled),
|
||||
spellcheck: disableSpellcheck ? 'false' : 'true',
|
||||
spellCheck: !disableSpellcheck,
|
||||
onChange: handleChange,
|
||||
onKeyDown: handleKeyDown,
|
||||
onPaste: handlePaste,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue