mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-11 23:52:53 +02:00
deselect editabletext when tabbing away
This commit is contained in:
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…
x
Reference in New Issue
Block a user