close
Skip to content

Navigation Block: Submenu additional class duplication #36464

@jacobcassidy

Description

@jacobcassidy

Description

When adding a class to a submenu block under "Advanced", it gets duplicated in the HTML twice. If you add multiple classes, they all get duplicated twice.

Step-by-step reproduction instructions

  1. In the Editor, add a submenu block
  2. Add a class for the submenu block in Advanced > Additional CSS class(es)
  3. Save your page
  4. Go to the live page and inspect the submenu block
  5. Notice the additional class(es) you added are inserted twice.

Screenshots, screen recording, code snippet

Add class called test-submenu
Add class to submenu

Check live page HTML for duplication of class:
HTML class duplication

Environment info

  • WP v5.8.2
  • Glutenberg v11.9.0
  • Chrome v95
  • macOS

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Block] SubmenuAffects the Submenu Block - for submenus in navigation[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions