drupal.block library should explicitly depend on drupal.tabledrag

Created on 24 November 2023, 10 months ago
Updated 26 January 2024, 8 months ago

Problem/Motivation

The drupal.block library's block.js file expects tabledrag to be present.

It is, but only via a fairly roundabout way -- the BlockListBuilder class adds a '#tabledrag' property, which then causes the Table render element to add tabledrag functionality, which then adds the drupal.tabledrag library.

This is confusing, and could lead to a bug being introduced in future if things are refactored.

Steps to reproduce

Proposed resolution

Add an explicit dependency to the drupal.block library library.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
BlockΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024