mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
check length of textarea, not its trueiness
This commit is contained in:
parent
1b4c5224fd
commit
76d4e8a788
@ -198,7 +198,7 @@ module.exports = React.createClass({
|
||||
textarea.focus();
|
||||
break;
|
||||
case 'insert_displayname':
|
||||
if (textarea.value) {
|
||||
if (textarea.value.length) {
|
||||
var left = textarea.value.substring(0, textarea.selectionStart);
|
||||
var right = textarea.value.substring(textarea.selectionEnd);
|
||||
if (right && right.length) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user