Avoid automated behaviours in the Navigation block when in preview mode #45887
Labels
[Block] Navigation
Affects the Navigation Block
[Feature] Navigation Menus
Any issue relating to Navigation Menus
Needs Dev
Ready for, and needs developer efforts
[Type] Enhancement
A suggestion for improvement.
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.The text was updated successfully, but these errors were encountered: