Problem/Motivation

After updating from core 11.3 to 11.4, radix fails the schema validation for the dropdown-menu component, causing a fatal PHP error.

Steps to reproduce

Display a page which has a nav component, such as a menu bar, which uses the dropdown-menu component. Observe the fatal crash.

Proposed resolution

The schema for the dropdown-menu component declares nav_utility_classes and nav_link_utility_classes as arrays. Since these are not initialized when the dropdown-menu component is included from the nav component, it fails validation.

Since these classes are not actually used in the dropdown-menu, the easiest solution is just to remove these two parameters from the dropdown-menu component's yaml schema.

CommentFileSizeAuthor
#2 dropdown-menu-schema._3609155-2.patch934 bytesdanchadwick

Issue fork radix-3609155

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

danchadwick created an issue. See original summary.

danchadwick’s picture

Status: Active » Needs review
StatusFileSize
new934 bytes

Sorry for the lack of a MR; a patch was the best I could offer at the moment.

danchadwick’s picture

Priority: Critical » Normal

Dropping priority to normal since this validation is not performed in production.

yan’s picture

I can confirm that the patch from #2 solves the problem for me.