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