Nested drag and drop of language resets weight on each level, resulting in unexpectedly sorted language lists

Created on 5 November 2020, about 4 years ago
Updated 31 March 2023, over 1 year ago

Problem/Motivation

Create a language hierarchy like this:
A
- B
- C
- - D

Then show row weights, you'll see that A, B and D are all -10 and C is -9, so D will show before C and the order of the A, B and D is not clearly defined.

That affects the language switcher and possibly other places.

Steps to reproduce

Proposed resolution

Not sure. Maybe the JS could be altered to have a weight order that just goes from A to D as -10, -9, -8, -7. Then other things might just work. That's how we manually did it in our case.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
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.

  • 🇱🇧Lebanon vitch

    Hello,
    I have recently encountered this issue and had to come up with a quick workaround:
    inspect the page and add the following css:

    td.tabledrag-hide {
        display: block !important;
    }
Production build 0.71.5 2024