mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 23:12:52 +02:00
remove spellcheck force disable on firefox (#1802)
This commit is contained in:
committed by
Ian Storm Taylor
parent
3f2e924f69
commit
a501d273f4
@@ -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 `<a>`, 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 (
|
||||
|
Reference in New Issue
Block a user