SOLVED: Nav Menu (Nestable) Dropdown allows duplicate Content block, but can't be deleted, resulting in corrupt state

Browser: Safari 17.0
OS: macOS

I noticed it’s possible to duplicate the Content block under a Dropdown element, however it cannot be deleted. This seems to be a rather large issue as one can easily get their menu into an unrecoverable state that way, needing to revert back to an older page design/revision or otherwise restoring from a site backup.

If the Content block can’t be deleted (which makes sense why it’s unable to be deleted), then it also should not be duplicatable in the same Dropdown element, IMO.

image

Steps to reproduce:

  1. Add a new Nav Nestable element
  2. In the Dropdown element (created by default), take the Content block and duplicate it
  3. Now try to delete the new Content block from within the Dropdown element, it will be greyed out and unable to be deleted.

I’m not entirely sure when this was introduced, but I can reproduce it on 1.8.3.

Hey Dustin,

thanks for your report.

Unfortunately I am not able to reproduce it. Can you maybe record a small screencast demonstrating the issue and showing and explaining the exact steps?

Best,

André

Hi @aslotta,

That’s very strange it isn’t reproducible. After reading your comment I thought first maybe it was a side-effect of Advanced Themer for example, but I tried disabling it just now and same issue occurs. I’ve recorded a short video for you.

For me, I can see that I can’t copy from the UI, however if I hit “Command+C” in Safari on macOS (not sure if it’s unique to that set up), you can see from the video that it clearly copies and pastes again. It’s very odd.

Video: https://share.d19.ca/f.php?h=0PrIgqRO&p=1

Edit: Tried Chrome on macOS too and same issue, so doesn’t seem to be browser-specific.

Confirming I am running Bricks 1.8.3:

By the way, I can reproduce this in the try.bricksbuilder.io as well.

I am unable to replicate (1.8.3) although it is kind of recoverable…

  1. Add a new Dropdown.
  2. Save what you can by dragging (or copy-paste) all elements into the new Dropdown (single) Content div.
  3. Delete the original Dropdown with all random Content divs inside.

I hope this makes sense.

Hey Dustin,

thanks for the update. As the title stated “duplicating” I tried to duplicate. I did not try copy pasting. :slight_smile: I was now able to reproduce the issue and added it to our bug tracker.

Best,

André

1 Like

Ah sorry, I should have made that more clear in my reproduction steps, my apologies on that :sweat: I’m happy to hear it’s reproducible though and will be addressed. :slight_smile:

It seems this issue hasn’t been resolved yet, and I was able to encounter a very similar issue again but this time with the special “Nav Items” sub-element.

Hi Dustin,
Correct, the task is still in progress (see title).

The nav items block can not be deleted or duplicated, because otherwise nothing (JS + styles) will work. From somewhere the code must know where it should apply to :wink:

The problem is that it can be duplicated by control-C and control-V on the keyboard, that’s the issue being reported. The menu doesn’t allow for it to be duplicated or deleted but it doesn’t block the behaviour from keyboard shortcuts. Initially reported with the dropdown part, just adding that it also happens to nav items too.

This bug has been open for a while now, hoping this will be resolved soon.

1 Like

Hi Dustin,
We’ve fixed the issues in Bricks 1.9.2, now available as a one-click update in your WordPress Dashboard.

Changelog: Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse

1 Like