Fix spellcheck in comment simple editor
This commit is contained in:
parent
564beb7c90
commit
393aba0385
2 changed files with 4 additions and 1 deletions
|
@ -330,6 +330,7 @@ export class FormField extends React.PureComponent<Props, State> {
|
||||||
) : (
|
) : (
|
||||||
<React.Suspense fallback={null}>
|
<React.Suspense fallback={null}>
|
||||||
<TextareaWithSuggestions
|
<TextareaWithSuggestions
|
||||||
|
spellCheck
|
||||||
uri={uri}
|
uri={uri}
|
||||||
type={type}
|
type={type}
|
||||||
id={name}
|
id={name}
|
||||||
|
|
|
@ -58,6 +58,7 @@ type Props = {
|
||||||
value: any,
|
value: any,
|
||||||
autoFocus?: boolean,
|
autoFocus?: boolean,
|
||||||
submitButtonRef?: any,
|
submitButtonRef?: any,
|
||||||
|
spellCheck?: boolean,
|
||||||
claimIsMine?: boolean,
|
claimIsMine?: boolean,
|
||||||
slimInput?: boolean,
|
slimInput?: boolean,
|
||||||
doResolveUris: (uris: Array<string>, cache: boolean) => void,
|
doResolveUris: (uris: Array<string>, cache: boolean) => void,
|
||||||
|
@ -92,6 +93,7 @@ export default function TextareaWithSuggestions(props: Props) {
|
||||||
value: messageValue,
|
value: messageValue,
|
||||||
autoFocus,
|
autoFocus,
|
||||||
submitButtonRef,
|
submitButtonRef,
|
||||||
|
spellCheck,
|
||||||
claimIsMine,
|
claimIsMine,
|
||||||
slimInput,
|
slimInput,
|
||||||
doResolveUris,
|
doResolveUris,
|
||||||
|
@ -105,7 +107,7 @@ export default function TextareaWithSuggestions(props: Props) {
|
||||||
handlePreventClick,
|
handlePreventClick,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const inputDefaultProps = { className, placeholder, maxLength, type, disabled };
|
const inputDefaultProps = { className, placeholder, maxLength, spellCheck, type, disabled };
|
||||||
|
|
||||||
const [suggestionValue, setSuggestionValue] = React.useState(undefined);
|
const [suggestionValue, setSuggestionValue] = React.useState(undefined);
|
||||||
const [highlightedSuggestion, setHighlightedSuggestion] = React.useState('');
|
const [highlightedSuggestion, setHighlightedSuggestion] = React.useState('');
|
||||||
|
|
Loading…
Add table
Reference in a new issue