Problem/Motivation
I don't see the tabledraggers (tabledrag-cell's are set to display: none) and I need to use the "Show row weights" option, and enter for example "-1" to re-order the fields (see image below).
It's the same for items under "Sorts" (/admin/config/search/search-api/index/INDEX_ID/sorts) where they are also missing.
They are however present under for example "Processors" (see image below) at /admin/config/search/search-api/index/INDEX_ID/processors or a Content type's "Manage display" page, so seems isolated to "Sorts" and "Sorts Widget". I checked and <script src="/core/misc/tabledrag.js?v=10.6.14"></script> is present in the source.
Missing tabledraggers for "Sorts Widget"

Tabledraggers present for "Processors"

Steps to reproduce
I am not sure ... I am ready to test, and try any suggestions on how to get to the bottom of this :)
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| 2-present-tabledraggers-Selection_002.png | 19.42 KB | ressa | |
| 1-missing-tabledraggers-Selection_001.png | 44.01 KB | ressa |
Issue fork search_api_sorts_widget-3617689
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
peri22 commentedThanks for the report, I confirmed this is a bug in our module.
MR !11 moves the weight column to the right end of the table. Form saving still works perfectly, because `submitForm()` reads the values by their keys, not by their visual order.
Comment #5
ressaThanks for checking so fast, and creating an MR. I can confirm that it works well, and I can drag, and re-order the fields now. (With the patch from #3488348: Sort weight is not respected it works totally perfectly).
Maybe the code was copied from the https://www.drupal.org/project/search_api_sorts module, possibly explaining why that module has the same problem? I'll create another issue for that :)
EDIT: See #3617951: Tabledraggers are missing for Search API Sorts module.
Comment #7
peri22 commented