Remove selection from text if displayname is blurred

This commit is contained in:
schlagmichdoch 2024-08-07 20:15:38 +02:00
parent 9f4d99c8db
commit 1549ff48c9

View file

@ -274,6 +274,10 @@ class FooterUI {
if (/^(\n|\r|\r\n)$/.test(e.target.innerText)) {
e.target.innerText = '';
}
// Remove selection from text
window.getSelection().removeAllRanges();
await this._saveDisplayName(e.target.innerText)
}