Drupal ajax error after D10 update from version 10.0.11 to 10.2.1

Created on 15 January 2024, 11 months ago
Updated 19 September 2024, 3 months ago

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


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

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Ajax  →

Last updated about 1 hour ago

Created by

🇮🇳India drupalite1411

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024