Fix spellcheck in comment simple editor

This commit is contained in:
David Granado 2022-04-05 21:39:27 -05:00 committed by Thomas Zarebczan
parent 564beb7c90
commit 393aba0385
2 changed files with 4 additions and 1 deletions

View file

@ -330,6 +330,7 @@ export class FormField extends React.PureComponent<Props, State> {
) : (
<React.Suspense fallback={null}>
<TextareaWithSuggestions
spellCheck
uri={uri}
type={type}
id={name}

View file

@ -58,6 +58,7 @@ type Props = {
value: any,
autoFocus?: boolean,
submitButtonRef?: any,
spellCheck?: boolean,
claimIsMine?: boolean,
slimInput?: boolean,
doResolveUris: (uris: Array<string>, cache: boolean) => void,
@ -92,6 +93,7 @@ export default function TextareaWithSuggestions(props: Props) {
value: messageValue,
autoFocus,
submitButtonRef,
spellCheck,
claimIsMine,
slimInput,
doResolveUris,
@ -105,7 +107,7 @@ export default function TextareaWithSuggestions(props: Props) {
handlePreventClick,
} = props;
const inputDefaultProps = { className, placeholder, maxLength, type, disabled };
const inputDefaultProps = { className, placeholder, maxLength, spellCheck, type, disabled };
const [suggestionValue, setSuggestionValue] = React.useState(undefined);
const [highlightedSuggestion, setHighlightedSuggestion] = React.useState('');