-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search Block: Button styles don't save when placed inside a Navigation block #53038
Comments
cc @getdave I think you have been working on Navigation. Any ideas here? |
@scruffian wasn't this a bug you and I were looking into at one point? It was to do with random effects in the search block firing? Did we miss a backport? |
Is this a duplicate of #51713? In any case, I can reproduce it in 6.2.2 so it's not a 6.3 regression. |
And apparently, I commented on that issue!?! 😅 That said, I am still able to replicate in Gutenberg 16.3, so the linked PR did not resolve the issue even though it is closed. As for 6.3, since this issue is present in 6.2 and therefore not a regression, let's punt. |
Is there a work around for this in the meantime? |
I couldn't reproduce this specific issue in Chrome, Edge, Firefox or Safari but was experiencing some other strange behaviour. When trying to add text to an empty search block rich text field I couldn't at all. It would bounce focus away from the button. 2023-09-25.13.14.56.mp4 |
I can reproduce the issue only when first adding a Search block in a Nav block; saving and reloading or even just switching to code view and back restores the expected behaviour. search-in-nav.mov |
@ramonjd @tellthemachines I have a PR for review 🙏 |
Thanks for tracking it down @getdave ! |
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
Screenshots, screen recording, code snippet
Environment info
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
The text was updated successfully, but these errors were encountered: