disable spellCheck when the placeholder is shown because "unencrypted"

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-07-16 18:32:50 +01:00
parent c7859fed1a
commit bdbc2cbd38
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 2 additions and 1 deletions

View File

@ -1543,7 +1543,8 @@ export default class MessageComposerInput extends React.Component {
onFocus={this.onFocus}
renderNode={this.renderNode}
renderMark={this.renderMark}
spellCheck={true}
// disable spell check for the placeholder because browsers don't like "unencrypted"
spellCheck={!this.state.editorState.document.isEmpty}
/>
</div>
</div>