mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-01 04:50:27 +02:00
disable spellCheck, autoCorrect, autoCapitalize when browser doesnt HAS_BEFORE_INPUT_SUPPORT (#3946)
This commit is contained in:
@@ -505,14 +505,10 @@ export const Editable = (props: EditableProps) => {
|
||||
{...attributes}
|
||||
// COMPAT: Certain browsers don't support the `beforeinput` event, so we'd
|
||||
// have to use hacks to make these replacement-based features work.
|
||||
spellCheck={
|
||||
!HAS_BEFORE_INPUT_SUPPORT ? undefined : attributes.spellCheck
|
||||
}
|
||||
autoCorrect={
|
||||
!HAS_BEFORE_INPUT_SUPPORT ? undefined : attributes.autoCorrect
|
||||
}
|
||||
spellCheck={!HAS_BEFORE_INPUT_SUPPORT ? false : attributes.spellCheck}
|
||||
autoCorrect={!HAS_BEFORE_INPUT_SUPPORT ? false : attributes.autoCorrect}
|
||||
autoCapitalize={
|
||||
!HAS_BEFORE_INPUT_SUPPORT ? undefined : attributes.autoCapitalize
|
||||
!HAS_BEFORE_INPUT_SUPPORT ? false : attributes.autoCapitalize
|
||||
}
|
||||
data-slate-editor
|
||||
data-slate-node="value"
|
||||
|
Reference in New Issue
Block a user