verbb / cp-nav

Control Panel Nav is a Craft CMS plugin to help manage your Control Panel navigation.
MIT License
130 stars 11 forks source link

Ordering gets messed up if you add dividers in 3.4 #77

Closed adrienne closed 3 years ago

adrienne commented 4 years ago

Description

When I add dividers to the menu and then drag items to reorder, everything just gets deeply messed up. Dashboard ends up in a weird and mostly random place, and the dividers don't stay put either.

It doesn't seem to matter whether Project Config is enabled or not; it was enabled to start with, but I disabled it to see if that fixed the issue and it did not.

Additional info

engram-design commented 4 years ago

I can't seem to immediately reproduce this. Is the order of items messed up as soon as you change them? The sidebar should re-order immediately when you are editing the menu. Does a page refresh help?

Wondering if you might be able to send through a screenshot of your cpnav_navigation database table?

Lastly, it might be worth checking out the latest code where I've simplified how new menu items work. You can install it by running composer require verbb/cp-nav:dev-craft-3

engram-design commented 3 years ago

Closing for now due to age.