fix failed test

pull/5291/head
Tan Li Hau 5 years ago
parent 4366610946
commit 93b403d0d6

@ -726,6 +726,8 @@ export default class ElementWrapper extends Wrapper {
if (${block.renderer.dirty(Array.from(dependencies))} && ${data}.multiple) @select_options(${this.var}, ${data}.value); if (${block.renderer.dirty(Array.from(dependencies))} && ${data}.multiple) @select_options(${this.var}, ${data}.value);
`); `);
} else if (this.node.name === 'input' && this.attributes.find(attr => attr.node.name === 'value')) { } else if (this.node.name === 'input' && this.attributes.find(attr => attr.node.name === 'value')) {
const type = this.node.get_static_attribute_value('type');
if (type === null || type === "" || type === "text" || type === "email" || type === "password") {
block.chunks.mount.push(b` block.chunks.mount.push(b`
${this.var}.value = ${data}.value; ${this.var}.value = ${data}.value;
`); `);
@ -736,6 +738,7 @@ export default class ElementWrapper extends Wrapper {
`); `);
} }
} }
}
add_transitions( add_transitions(
block: Block block: Block

Loading…
Cancel
Save