diff --git a/src/generators/dom/visitors/attributes/addElementAttributes.js b/src/generators/dom/visitors/attributes/addElementAttributes.js index b300b1e456..c086ccc29f 100644 --- a/src/generators/dom/visitors/attributes/addElementAttributes.js +++ b/src/generators/dom/visitors/attributes/addElementAttributes.js @@ -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` ); + } } }