Commit 29fe0caf authored by Wayne Eaker's avatar Wayne Eaker
Browse files

Issue #3311706: Port select element fix from #3176067 to 2.0.x

parent 87bdd652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ function form_options_attributes_element_info_alter(array &$info) {
function form_options_attributes_preprocess_form_options_attributes__select__options_attributes(&$variables) {
  $element = $variables['element'];
  Element::setAttributes($element, ['id', 'name', 'size']);
  RenderElement::setAttributes($element, ['form-select']);
  RenderElement::setAttributes($element, $variables['attributes']['class']);

  $variables['attributes'] = $element['#attributes'];
  $variables['options'] = form_select_options($element);