Javascript breaking on block layout page after drag or select new region

Created on 1 September 2023, over 1 year ago
Updated 18 October 2023, about 1 year ago

Problem/Motivation

Javascript breaking on the block layout page when a row is dragged
The issue was caused by the Refactor (if feasible) use of jquery is function to use vanillaJS 📌 Refactor (if feasible) use of jquery is function to use vanillaJS Fixed

Steps to reproduce

  • Access drupal instance and open console
  • go to /admin/structure/block and drag any row
  • you should able to see the following error message: block.js?v=10.2.0-dev:138 Uncaught TypeError: rowObject.matches is not a function

Proposed resolution

Fix parameter passed to function updateLastPlaced block.js
update line 247 to pass row[0] instead of row
Also, fix the parameter on line 175 passing this.element instead of this object.

Remaining tasks

no

User interface changes

no

API changes

no

Data model changes

no

Release notes snippet

no

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Javascript 

Last updated 1 day ago

Created by

🇧🇷Brazil joaopauloc.dev

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

Comments & Activities

Production build 0.71.5 2024