- π©πͺGermany Anybody Porta Westfalica
Works in 2.x - please use the later version.
After installing the module (using Drupal 8.8.4) and setting a field to use a draggable table, the rows will not drag and there are javascript errors in tabledrag.js.
It is looking for the first cell of the first row and cannot find it. If you edit the tabledrag.js like this it works:
- 542 if (row.offsetHeight === 0) {
- rowHeight = parseInt(row.firstChild.offsetHeight, 10) / 2;
- } else {
- rowHeight = parseInt(row.offsetHeight, 10) / 2;
- }
+ 542 rowHeight = parseInt(row.offsetHeight, 10) / 2;
OR if you edit the tabledrag.checkbox.js like this, it also works.
- 114 var spacer = '<tr class="tabledrag-sort-spacer"></tr>';
+ 114 var spacer = '<tr class="tabledrag-sort-spacer"><td></td></tr>';
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Works in 2.x - please use the later version.