Commit 81828a07 authored by KR Moorhouse's avatar KR Moorhouse Committed by Kenny Hall

Modified DOM constructor to used proper selection attribute. (#3465)

parent 9aafc422
......@@ -138,7 +138,9 @@ define( ['views/app/drawer/optionRepeaterError'], function( ErrorView ) {
fields.each( function( field ){
var option = document.createElement( 'option' );
option.selected = ( value == field.get( 'key' ) );
if ( value == field.get( 'key' ) ) {
option.setAttribute( 'selected', 'selected' );
}
option.value = field.get( 'key' );
option.label = field.get( 'label' );
select.appendChild( option );
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment