Skip to content

Search Block: Button styles don't save when placed inside a Navigation block #53038

@ndiego

Description

@ndiego

Description

If you place a Search block inside of a menu in a Navigation block, then set the block to "Button only" (or any other option besides "Button inside"), the style is not persisted when the Navigation menu is saved. The Search block reverts to "Button inside". See the gif below.

Step-by-step reproduction instructions

  1. Create a Navigation menu
  2. Save the Navigation menu
  3. Add a Search block to the menu
  4. Set the Search block to "Button only" (or any other option besides "Button inside")
  5. Save the Navigation menu and see that the Search block is no longer set to "Button only"

Screenshots, screen recording, code snippet

search-block

Environment info

  • WordPress 6.3 RC2

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] SearchAffects the Search Block - used to display a search field[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions