Skip to content

[5.x]: Matrix disclosureMenu error #18366

@ZapaNOR

Description

@ZapaNOR

What happened?

Description

When editing an entry every matrix block spawn a bunch of these errors:
Uncaught TypeError: Cannot read properties of undefined (reading 'on')
It seems this comes from the disclosure menu:
disclosureMenu.on('show', () => {...

Steps to reproduce

  1. Create a matrix field
  2. Set it to inline editable blocks
  3. Add it to entry type
  4. Create new entry, add a matrix block
  5. Console gets around 8 of these errors per block

I've not tested this with a matrix field that is only 1 layer deep, but I get the error from the first layer.

Image Image

Craft CMS version

5.9.5

PHP version

8.4

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions