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

pull/7738/head
Taylor Zane Glaeser 9 years ago
parent 29e81c3d0a
commit 2205f5ce36

@ -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