mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-30 02:41:05 +02:00
disable spellCheck when the placeholder is shown because "unencrypted"
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
c7859fed1a
commit
bdbc2cbd38
@ -1543,7 +1543,8 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
onFocus={this.onFocus}
|
onFocus={this.onFocus}
|
||||||
renderNode={this.renderNode}
|
renderNode={this.renderNode}
|
||||||
renderMark={this.renderMark}
|
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>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user