Merge pull request #3376 from matrix-org/bwindels/cider-pills-spellcheck

New composer: disable spell check for pills
This commit is contained in:
Bruno Windels
2019-09-02 12:41:45 +00:00
committed by GitHub

View File

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