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

Drupal ajax error after D10 update from version 10.0.11 to 10.2.1

$
0
0

Problem/Motivation

After updating Drupal 10 site from version 10.0.11 to 10.2.1 , getting drupal ajax error on adding media, blocks from layout builder. Also quick edit links are disappeared from blocks ,menus etc

Only local images are allowed.
Only local images are allowed.

Steps to reproduce

I checked on Drupal 10.2.2

  • Open layout builder page (as /node/xxxx/layout)
  • Enabled browsder debug tool
  • When mouse-over to block, pencil icon is showed at right
  • Click the pencil icon, click the delete option, then check the console, below error occured
An error occurred during the execution of the Ajax response: TypeError: Cannot read properties of undefined (reading 'style')
  • And right pane showed the opition button about `delete` or `cancel`, push the `cancel` button
  • After that, then check the console, below error occured
Uncaught TypeError: Cannot read properties of undefined (reading `style`)
  • And click the pencil icon click the delete option again, the right pane is not showed unless you reload the page

Proposed resolution

The reason why this error is in off-canvas.js, because the style property is not exsisted in jQuery type.

https://git.drupalcode.org/project/drupal/-/blob/6a43b511df9e26aa5abf0d1...

Remaining tasks

Nothing

User interface changes

Nothing

API changes

Nothing

Data model changes

Nothing

Release notes snippet


Viewing all articles
Browse latest Browse all 293733

Trending Articles