|
|
|
@ -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);
|
|
|
|
|
`);
|
|
|
|
|
} 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`
|
|
|
|
|
${this.var}.value = ${data}.value;
|
|
|
|
|
`);
|
|
|
|
@ -736,6 +738,7 @@ export default class ElementWrapper extends Wrapper {
|
|
|
|
|
`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
add_transitions(
|
|
|
|
|
block: Block
|
|
|
|
|