Nav block editing issues

Description:

Testing with 1.3 there are a few editing issues with the Nav block:

  1. Nav menu blocks cannot be previewed / edited in the editor
  2. Nav Dropdown blocks do not accept child blocks via any means (copy/paste, adding via the + button or adding via the editor toolbar button). This also makes existing child blocks contained within these blocks uneditable. (This issue may have also been present in 1.2.9.9.5)

This is fairly urgent for us as we are midway through a release

Step-by-step reproduction instructions:

  1. Open the Cwicly Themer > Parts
  2. Edit the header
  3. Add a Nav block
  4. Add a Nav Menu
  5. Add a Nav Dropdown

Screenshots, screen recording, code snippet

  1. Nav Menu block cannot be previewed / edited:
    Screenshot 2023-09-14 at 07.12.14

  2. Nav Dropdown blocks do not accept child blocks:
    Screenshot 2023-09-14 at 07.24.12

Environment info

  • WordPress version: 6.3.1
  • Cwicly Plugin version: 1.3

Hello @StrangeTech,

Thanks for the report and my apologies for the issues you’re experiencing here.

I can’t reproduce this currently on my end.
Please could you attach (or send support) a copy of your browser console.

Have you made sure to toggle on the Custom Content property in your Nav Dropdown?

Cheers,

Thank you for the speedy response @Louis

The only error in the console is:

react-dom.min.js?ver=18.2.0:10 TypeError: n?.menuSelected?.includes is not a function
    at e (index.js?ver=1.3:3:3420064)
    at wt (react-dom.min.js?ver=18.2.0:10:47637)
    at js (react-dom.min.js?ver=18.2.0:10:120584)
    at wl (react-dom.min.js?ver=18.2.0:10:88659)
    at bl (react-dom.min.js?ver=18.2.0:10:88587)
    at yl (react-dom.min.js?ver=18.2.0:10:88450)
    at il (react-dom.min.js?ver=18.2.0:10:85274)
    at ol (react-dom.min.js?ver=18.2.0:10:83831)
    at v (react.min.js?ver=18.2.0:10:3385)
    at MessagePort.ce (react.min.js?ver=18.2.0:10:5527)

And yes custom content is toggled - this was all working fine when we created it a couple of weeks ago and the nav dropdown still works (we had already added the Menu child block to it prior to the bug being present).

Hello @StrangeTech,

Thanks for that information. I can reproduce the WordPress menu issue, and will have a fix for this in the next update (if you need this in priority, please contact support so that we can forward a temporary fix to you).

As for the custom dropdown, I recall this already being an issue on your end if I’m not mistaken? Do you have a staging area where I can maybe take a look?

Thanks in advance.

Thank you @Louis.

We had raised this issue before, you are correct:

Unfortunately this time it appears to be stuck in this state.

@Louis, Much appreciated. I have sent you login details. Let me know if you need anything else.

I was also not able to insert childs via the block toolbar once. After refreshing the site it worked again. It occured only once, but still happened to me!

Hi @StrangeTech,

Thank you for reporting this!

Inserting a WordPress menu into the Nav block should no longer cause a crash in 1.3.0.1.
Kindly let us know if this is the case on your end.

Thank you!

Thanks @Araminta, yes this works perfectly again after the update.

1 Like