mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-21 22:54:53 +08:00
Fix display name not being editable on some older iOS devices (#163)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user