pull/3437/head
Richard Harris 5 years ago
parent 63a7a37bb7
commit 157db0c814

@ -209,7 +209,7 @@ function get_dom_updater(
}
if (binding.node.name === 'value') {
return `@set_input_value(${element.var}, ${binding.snippet});`
return `@set_input_value(${element.var}, ${binding.snippet});`;
}
return `${element.var}.${binding.node.name} = ${binding.snippet};`;

@ -385,7 +385,7 @@ export default class ElementWrapper extends Wrapper {
const is = this.attributes.find(attr => attr.node.name === 'is');
if (is) {
return `@element_is("${name}", ${is.render_chunks().join(' + ')});`
return `@element_is("${name}", ${is.render_chunks().join(' + ')});`;
}
return `@element("${name}")`;

@ -17,4 +17,4 @@ export default {
assert.equal(styles.color, '');
assert.equal(styles.fontSize, '20px');
}
}
};
Loading…
Cancel
Save