diff --git a/src/Plugin/Field/FieldWidget/ParagraphsWidget.php b/src/Plugin/Field/FieldWidget/ParagraphsWidget.php index ea4809e..125172d 100644 --- a/src/Plugin/Field/FieldWidget/ParagraphsWidget.php +++ b/src/Plugin/Field/FieldWidget/ParagraphsWidget.php @@ -2245,7 +2245,7 @@ class ParagraphsWidget extends WidgetBase { // around and can find the sortable library. $library_discovery = \Drupal::service('library.discovery'); $library = $library_discovery->getLibraryByName('paragraphs', 'paragraphs-dragdrop'); - if (($this->realItemCount > 1 && $library) || \Drupal::state()->get('paragraphs_test_dragdrop_force_show', FALSE)) { + if ($this->realItemCount > 0 && ($library || \Drupal::state()->get('paragraphs_test_dragdrop_force_show', FALSE))) { $dragdrop_mode = $this->expandButton([ '#type' => 'submit', '#name' => $this->fieldIdPrefix . '_dragdrop_mode',