Skip to content

Commit d70ed21

Browse files
committed
Remove drag and drop reordering and work with btns.
1 parent ba5a4e6 commit d70ed21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Resources/MenuResource/Pages/ManageMenuItems.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -935,8 +935,8 @@ public function moveItemUp(int $itemId): void
935935
if ($previousSibling) {
936936
$item->beforeNode($previousSibling)->save();
937937

938-
// Refresh the tree to show new order
939-
$this->refreshTree();
938+
// Just refresh without changing component keys
939+
$this->dispatch('menu-items-updated');
940940

941941
Notification::make()
942942
->title('Menu item moved up successfully.')
@@ -969,8 +969,8 @@ public function moveItemDown(int $itemId): void
969969
if ($nextSibling) {
970970
$item->afterNode($nextSibling)->save();
971971

972-
// Refresh the tree to show new order
973-
$this->refreshTree();
972+
// Just refresh without changing component keys
973+
$this->dispatch('menu-items-updated');
974974

975975
Notification::make()
976976
->title('Menu item moved down successfully.')

0 commit comments

Comments
 (0)