Skip to content

Commit

Permalink
Suppress Content Editable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamarora committed Sep 6, 2016
1 parent c3e588d commit 9e58c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ var Todo = React.createClass({
return(
<li id={this.props.id} className="list-group-item">
<input type="checkbox" defaultChecked={this.props.done} onClick={this.onCheckboxClick}/>
<span ref={"todoText-"+this.props.id} contentEditable={true} className={this.props.done ? "checked" : ""} onKeyDown={this.onTextFieldKeyDown}>{this.props.children}</span>
<span ref={"todoText-"+this.props.id} contentEditable={true} suppressContentEditableWarning={true} className={this.props.done ? "checked" : ""} onKeyDown={this.onTextFieldKeyDown}>{this.props.children}</span>
<a className="pull-right" onClick={this.onDeleteClick}><small><i className="glyphicon glyphicon-trash"></i></small></a>
</li>
);
Expand Down

0 comments on commit 9e58c2f

Please sign in to comment.