deselect editabletext when tabbing away

pull/21833/head
Matthew Hodgson 2016-01-14 17:24:52 +00:00
parent d767e72469
commit 2899082cba
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ module.exports = React.createClass({
}, },
onBlur: function(ev) { onBlur: function(ev) {
var sel = window.getSelection();
sel.removeAllRanges();
if (this.props.blurToCancel) if (this.props.blurToCancel)
this.cancelEdit(); this.cancelEdit();
else else