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
commit 5565eca0cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);