Skip to content

Commit 373664f

Browse files
committed
Remove drag and drop reordering and work with btns.
1 parent f015040 commit 373664f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Resources/MenuResource/Pages/ManageMenuItems.php

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

938-
// Just refresh without changing component keys
939-
$this->dispatch('menu-items-updated');
938+
// Let Livewire handle refresh naturally - no manual refresh
940939

941940
Notification::make()
942941
->title('Menu item moved up successfully.')
@@ -969,8 +968,7 @@ public function moveItemDown(int $itemId): void
969968
if ($nextSibling) {
970969
$item->afterNode($nextSibling)->save();
971970

972-
// Just refresh without changing component keys
973-
$this->dispatch('menu-items-updated');
971+
// Let Livewire handle refresh naturally - no manual refresh
974972

975973
Notification::make()
976974
->title('Menu item moved down successfully.')

0 commit comments

Comments
 (0)