mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 04:04:06 +02:00
Fix warning with latest react due to autocorrect being bool (#1148)
`Received 'true' for non-boolean attribute 'autoCorrect'. If this is expected, cast the value to a string.` Latest react won't autocast the bool to on/off
This commit is contained in:
committed by
Ian Storm Taylor
parent
e2d7a3acad
commit
13fd6d3a62
@@ -859,7 +859,7 @@ class Content extends React.Component {
|
||||
onKeyUp={this.onKeyUp}
|
||||
onPaste={this.onPaste}
|
||||
onSelect={this.onSelect}
|
||||
autoCorrect={props.autoCorrect}
|
||||
autoCorrect={props.autoCorrect ? 'on' : 'off'}
|
||||
spellCheck={spellCheck}
|
||||
style={style}
|
||||
role={readOnly ? null : (role || 'textbox')}
|
||||
|
Reference in New Issue
Block a user