Tabledrag is resetting the region value if items are nested

Created on 12 October 2019, about 5 years ago
Updated 31 January 2023, over 1 year ago

Problem

This issue is linked with the fieldgroup issue at https://www.drupal.org/project/field_group/issues/3085858 πŸ› Drag and drop acts weird, sometimes not resetting the parent, or even clearing the region value Needs review
When you are dragging a group or field that is in the content region to a new place as root element, there is no issue. The issue occurs when you drag the group or field to become a child of a group. If you click on the 'show row weights' button, you will see that the region value is lost.

Before dragging:

After dragging:

Solution

The issue seems to be related with 'field-name' that is set as source for the region. Which is not correct. Simply removing the configuration fixes the issue. Dragging the field in another region also keeps working.

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
Field UIΒ  β†’

Last updated 24 days ago

Created by

πŸ‡§πŸ‡ͺBelgium nils.destoop

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.71.5 2024