pull/3213/head
Richard Harris 6 years ago
parent a57dfb6b2b
commit a56c6990ad

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

@ -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;
}

Loading…
Cancel
Save