From a501d273f4e4d8a36aac99581043a585729dc76d Mon Sep 17 00:00:00 2001 From: Irwan Fario Subastian Date: Wed, 2 May 2018 11:03:24 +1000 Subject: [PATCH] remove spellcheck force disable on firefox (#1802) --- packages/slate-react/src/components/content.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/slate-react/src/components/content.js b/packages/slate-react/src/components/content.js index 798fd3442..3d657d34b 100644 --- a/packages/slate-react/src/components/content.js +++ b/packages/slate-react/src/components/content.js @@ -443,7 +443,15 @@ class Content extends React.Component { render() { const { props } = this - const { className, readOnly, editor, tabIndex, role, tagName } = props + const { + className, + readOnly, + editor, + tabIndex, + role, + tagName, + spellCheck, + } = props const { value } = editor const Container = tagName const { document, selection } = value @@ -473,11 +481,6 @@ class Content extends React.Component { ...props.style, } - // COMPAT: In Firefox, spellchecking can remove entire wrapping elements - // including inline ones like ``, which is jarring for the user but also - // causes the DOM to get into an irreconcilable value. (2016/09/01) - const spellCheck = IS_FIREFOX ? false : props.spellCheck - debug('render', { props }) return (