Loading core/lib/Drupal/Core/Field/WidgetBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -286,6 +286,7 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f '#name' => strtr($id_prefix, '-', '_') . '_add_more', '#value' => $this->t('Add another item'), '#attributes' => ['class' => ['field-add-more-submit']], '#button_type' => 'small', '#limit_validation_errors' => [], '#submit' => [[static::class, 'addMoreSubmit']], '#ajax' => [ Loading core/themes/claro/claro.theme +0 −5 Original line number Diff line number Diff line Loading @@ -1113,11 +1113,6 @@ function claro_preprocess_field_multiple_value_form(&$variables): void { } } } // Make add-more button smaller. if (!empty($variables['button'])) { $variables['button']['#attributes']['class'][] = 'button--small'; } } } Loading Loading
core/lib/Drupal/Core/Field/WidgetBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -286,6 +286,7 @@ protected function formMultipleElements(FieldItemListInterface $items, array &$f '#name' => strtr($id_prefix, '-', '_') . '_add_more', '#value' => $this->t('Add another item'), '#attributes' => ['class' => ['field-add-more-submit']], '#button_type' => 'small', '#limit_validation_errors' => [], '#submit' => [[static::class, 'addMoreSubmit']], '#ajax' => [ Loading
core/themes/claro/claro.theme +0 −5 Original line number Diff line number Diff line Loading @@ -1113,11 +1113,6 @@ function claro_preprocess_field_multiple_value_form(&$variables): void { } } } // Make add-more button smaller. if (!empty($variables['button'])) { $variables['button']['#attributes']['class'][] = 'button--small'; } } } Loading