Added block to create method that will initialize a select element with the value bound to `value`.

pull/502/head
Taylor Zane Glaeser 8 years ago
parent 61cbd4fa97
commit 0466f3874c

@ -120,6 +120,12 @@ export default function visitBinding ( generator, block, state, node, attribute
${generator.helper( 'addEventListener' )}( ${state.parentNode}, '${eventName}', ${handler} );
` );
if ( node.name === 'select' ) {
block.builders.create.addBlock( deindent`
${updateElement}
` );
}
if ( node.name !== 'audio' && node.name !== 'video' ) node.initialUpdate = updateElement;
if ( updateCondition !== null ) {

Loading…
Cancel
Save