From 03aac9eb6e6474b0d076a13f8095d3c2dcb6c948 Mon Sep 17 00:00:00 2001 From: himynameisdave Date: Mon, 13 Jan 2020 19:44:43 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8DAdd=20innerText=20to=20bindings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compiler/compile/render_dom/wrappers/Element/Binding.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index 7c8a339d00..5a3cf5963f 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -150,6 +150,11 @@ export default class BindingWrapper { update_conditions.push(x`${this.snippet} !== ${parent.var}.textContent`); mount_conditions.push(x`${this.snippet} !== void 0`); break; + + case 'innerText': + update_conditions.push(x`${this.snippet} !== ${parent.var}.innerText`); + mount_conditions.push(x`${this.snippet} !== void 0`); + break; case 'innerHTML': update_conditions.push(x`${this.snippet} !== ${parent.var}.innerHTML`);