Set contentEditable for PillParts to false

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-07-11 18:53:29 +02:00
parent 829169ec87
commit 98808aabca
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 0 deletions

View File

@ -249,6 +249,7 @@ abstract class PillPart extends BasePart implements IPillPart {
toDOMNode() { toDOMNode() {
const container = document.createElement("span"); const container = document.createElement("span");
container.setAttribute("spellcheck", "false"); container.setAttribute("spellcheck", "false");
container.setAttribute("contentEditable", "false");
container.className = this.className; container.className = this.className;
container.appendChild(document.createTextNode(this.text)); container.appendChild(document.createTextNode(this.text));
this.setAvatar(container); this.setAvatar(container);