Fix display name not being editable on some older iOS devices (#163)

This commit is contained in:
schlagmichdoch 2023-10-11 18:17:12 +02:00
parent 38a80d2d34
commit cd669b13d9
4 changed files with 16 additions and 4 deletions

View file

@ -1767,7 +1767,6 @@ class SendTextDialog extends Dialog {
const range = document.createRange();
const sel = window.getSelection();
this.$text.focus();
range.selectNodeContents(this.$text);
sel.removeAllRanges();
sel.addRange(range);
@ -1783,7 +1782,7 @@ class SendTextDialog extends Dialog {
to: this.correspondingPeerId,
text: this.$text.innerText
});
this.$text.value = "";
this.$text.innerText = "";
this.hide();
}
}