mirror of https://github.com/vector-im/riot-web
deselect editabletext when tabbing away
parent
d767e72469
commit
2899082cba
|
@ -173,6 +173,9 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
onBlur: function(ev) {
|
||||
var sel = window.getSelection();
|
||||
sel.removeAllRanges();
|
||||
|
||||
if (this.props.blurToCancel)
|
||||
this.cancelEdit();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue