Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293436

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

$
0
0

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


Viewing all articles
Browse latest Browse all 293436

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>