Gutenberg overriding core blocks default settings attributes not consistent #58826
gsailland
started this conversation in
Developer Experience
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The core/navigation block will select never in the editor by default but then in the render_callback, the value is empty ( trere is no overlayMenu key in $attributes ) and the function displaying the navigation Do this:
$is_responsive_menu = isset( $attributes['overlayMenu'] ) && 'never' !== $attributes['overlayMenu'] || $has_old_responsive_attribute;
Shouldn't default attributes to be set? It seems they are omited in the block attributes
Beta Was this translation helpful? Give feedback.
All reactions