-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Block] SubmenuAffects the Submenu Block - for submenus in navigationAffects the Submenu Block - for submenus in navigation[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
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
- In the Editor, add a submenu block
- Add a class for the submenu block in
Advanced > Additional CSS class(es) - Save your page
- Go to the live page and inspect the submenu block
- Notice the additional class(es) you added are inserted twice.
Screenshots, screen recording, code snippet
Check live page HTML for duplication of class:

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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] SubmenuAffects the Submenu Block - for submenus in navigationAffects the Submenu Block - for submenus in navigation[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
