Fix spellcheck (#1293)
This commit is contained in:
commit
ee22775c7a
2 changed files with 5 additions and 2 deletions
|
@ -262,7 +262,7 @@ export class FormField extends React.PureComponent<Props, State> {
|
||||||
events={handleEvents}
|
events={handleEvents}
|
||||||
getMdeInstance={getInstance}
|
getMdeInstance={getInstance}
|
||||||
options={{
|
options={{
|
||||||
spellChecker: true,
|
spellChecker: false,
|
||||||
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'],
|
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'],
|
||||||
status: [
|
status: [
|
||||||
{
|
{
|
||||||
|
@ -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…
Reference in a new issue