Skip to content

Avoid automated behaviours in the Navigation block when in preview mode #45887

@scruffian

Description

@scruffian

In #44173 we introduced a fallback to classic menus. This is also triggered when the block is previewed in a pattern browser. We should detect whether we are in a preview state, using an __unstableIsPreviewMode attribute ( introduced here), and if we are then we shouldn't import the classic menu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions