Don't show drag and drop when there are no items to drag

Created on 8 September 2017, almost 8 years ago
Updated 10 June 2024, about 1 year ago

Problem/Motivation

We are always showing drag and drop control, even when there is 0 or 1 paragraph item which does not make sense.

Above screenshot also shows that we are missing edge screen detection, but this will be a rare case and i don't think it is a big deal for now.

Proposed resolution

Show drag and drop control only for two or more par items.

Remaining tasks

Do it.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Experimental Widget

Created by

🇷🇸Serbia pivica

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States charles belov San Francisco, CA, US

    This issue appears to have regressed. As of Feb. 28, 2024:

    Steps to reproduce

    1. Go to https://simplytest.me
    2. In the field, type "Core" (without the quotes)
    3. Choose Drupal core
    4. Click the add project button
    5. In the project field, type "Paragraphs"
    6. Choose Paragraphs
    7. Click the button to create the site
    8. Once the site has been created, log in as admin
    9. In the admin menu, choose Manage, then Structure, then Paragraphs types
    10. Click Add paragraph type
    11. Type label "Single contact"
    12. Click Save and manage fields
    13. Click Create a new field
    14. Type label "Contact name"
    15. Choose text
    16. Click Continue
    17. Change Allowed number of values to unlimited
    18. Click Save settings
    19. Choose Structure, then Content types, then, on the row for Basic page, choose Manage fields
    20. Click Create a new field
    21. Type label "Contact information"
    22. Choose Paragraphs
    23. Click Continue
    24. Under paragraph types, check Single contact
    25. Click Save settings
    26. In the admin menu, choose Manage, then Content, then Add content, then Basic page

    Expected result: Contact information has no vertical three dots icon

    Actual result: Contact information has a vertical three dots icon. Clicking the three dot icon reveals the menu item Drag & Drop

  • 🇮🇳India sahilgidwani Jaipur

    Adding updated patch for 1.17 version

Production build 0.71.5 2024