mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 05:01:17 +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}
|
onKeyUp={this.onKeyUp}
|
||||||
onPaste={this.onPaste}
|
onPaste={this.onPaste}
|
||||||
onSelect={this.onSelect}
|
onSelect={this.onSelect}
|
||||||
autoCorrect={props.autoCorrect}
|
autoCorrect={props.autoCorrect ? 'on' : 'off'}
|
||||||
spellCheck={spellCheck}
|
spellCheck={spellCheck}
|
||||||
style={style}
|
style={style}
|
||||||
role={readOnly ? null : (role || 'textbox')}
|
role={readOnly ? null : (role || 'textbox')}
|
||||||
|
Reference in New Issue
Block a user