[Drupal 10.2 below] Table drag&drop (tableDrag) is broken

Created on 12 July 2024, about 2 months ago
Updated 22 August 2024, 16 days ago

Problem/Motivation

Table drug&drop is broken on all pages that use it.

There is an error in browser console:

tabledrag.js?v=9.5.11:1016 Uncaught 
TypeError: Drupal.elementIsHidden is not a function
    at Drupal.tableDrag.findDropTargetRow (tabledrag.js?v=9.5.11:1016:18)
    at Drupal.tableDrag.dragRow (tabledrag.js?v=9.5.11:828:33)
    at HTMLDocument.<anonymous> (tabledrag.js?v=9.5.11:278:12)
    at HTMLDocument.dispatch (jquery.min.js?v=3.6.3:2:43336)
    at y.handle (jquery.min.js?v=3.6.3:2:41320)

Table drug&drop was broken by this commit https://git.drupalcode.org/project/gin/-/commit/a00028c73929fca917103163...

Drupal.elementIsHidden - was introduced in drupal core branch 10.2.x, so using Gin 3.0-rc13 on early Drupal core versions breaks table drug.

Steps to reproduce

Test on drupal core version early than 10.2

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇦Ukraine Oleksandr Yushchenko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024