fix select option value issue (#291)

pull/298/head
cayasso 8 years ago
parent b31ecc5649
commit 1d4264c338

@ -142,7 +142,11 @@ export default function addElementAttributes ( generator, node, local ) {
}
if ( isBoundOptionValue ) {
( dynamic ? local.update : local.init ).addLine( `${local.name}.value = ${local.name}.__value` );
local.init.addLine( `${local.name}.value = ${local.name}.__value` );
if (dynamic) {
local.update.addLine( `${local.name}.value = ${local.name}.__value` );
}
}
}

Loading…
Cancel
Save