Remove selection from text if displayname is blurred
This commit is contained in:
parent
9f4d99c8db
commit
1549ff48c9
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue