diff --git a/core/lib/Drupal/Core/Field/WidgetBase.php b/core/lib/Drupal/Core/Field/WidgetBase.php index 64a3ae4..4294d6c 100644 --- a/core/lib/Drupal/Core/Field/WidgetBase.php +++ b/core/lib/Drupal/Core/Field/WidgetBase.php @@ -202,16 +202,15 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f '#default_value' => $items[$delta]->_weight ?: $delta, '#weight' => 100, ]; - $element['_remove']['check'] = [ - '#title' => $this->t('Remove'), - '#title_display' => 'invisible', - '#type' => 'checkbox', - '#weight' => 101, - ]; $element['_remove']['button'] = [ '#type' => 'button', '#attributes' => ['class' => ['hidden']], '#value' => t('Remove'), + '#weight' => 101, + ]; + $element['_remove']['check'] = [ + '#title' => $this->t('Remove'), + '#type' => 'checkbox', '#weight' => 102, ]; } diff --git a/core/themes/classy/css/components/form.css b/core/themes/classy/css/components/form.css index d6ba76a..8d7f07f 100644 --- a/core/themes/classy/css/components/form.css +++ b/core/themes/classy/css/components/form.css @@ -10,7 +10,7 @@ form .field-multiple-table tr.removed, form .field-multiple-table .delta-remove .hidden { display: none; } -.js form .field-multiple-table .delta-remove .form-checkbox { +.js form .field-multiple-table .delta-remove .form-type-checkbox { display: none; } form .field-multiple-table .field-multiple-drag {