diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index b1d7b52b66a4..1ea65830ef0e 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -109,8 +109,7 @@ export default class BindingWrapper { if (parent.node.name === 'input') { const type = parent.node.get_static_attribute_value('type'); - if (type === null || type === "" || type === "text" - || type === "email" || type === "password") { + if (type === null || type === "" || type === "text" || type === "email" || type === "password") { update_conditions.push(`(${parent.var}.${this.node.name} !== ${this.snippet})`); } } diff --git a/src/compiler/compile/render_dom/wrappers/Fragment.ts b/src/compiler/compile/render_dom/wrappers/Fragment.ts index 2eadf3e915f0..d81bd6bcc981 100644 --- a/src/compiler/compile/render_dom/wrappers/Fragment.ts +++ b/src/compiler/compile/render_dom/wrappers/Fragment.ts @@ -17,7 +17,6 @@ import { INode } from '../../nodes/interfaces'; import Renderer from '../Renderer'; import Block from '../Block'; import { trim_start, trim_end } from '../../../utils/trim'; -import TextWrapper from './Text'; const wrappers = { AwaitBlock, @@ -103,7 +102,7 @@ export default class FragmentWrapper { // glue text nodes (which could e.g. be separated by comments) together if (last_child && last_child.node.type === 'Text') { - (last_child as TextWrapper).data = data + (last_child as TextWrapper).data; + (last_child as Text).data = data + (last_child as Text).data; continue; }