Skip to content

Commit

Permalink
fix select option value issue (sveltejs#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
cayasso committed Feb 24, 2017
1 parent b31ecc5 commit 1d4264c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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` );
}
}
}

Expand Down

0 comments on commit 1d4264c

Please sign in to comment.