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
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