Using taxonomy in my own module, in some cases I disable tabledrag of the terms overview by deleting $form['terms']['#tabledrag']. As a consequence of this there is no content in Drupal.tableDrag.taxonomy (JavaScript). The attach function of Drupal.behaviors.termDrag (taxonomy.js) is regardless executed and runs into an error.

Is it possible to abort the function if there is no content in Drupal.tableDrag.taxonomy?
Thanks.

Comments

gendoas created an issue. See original summary.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.