File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -935,8 +935,8 @@ public function moveItemUp(int $itemId): void
935
935
if ($ previousSibling ) {
936
936
$ item ->beforeNode ($ previousSibling )->save ();
937
937
938
- // Refresh the tree to show new order
939
- $ this ->refreshTree ( );
938
+ // Just refresh without changing component keys
939
+ $ this ->dispatch ( ' menu-items-updated ' );
940
940
941
941
Notification::make ()
942
942
->title ('Menu item moved up successfully. ' )
@@ -969,8 +969,8 @@ public function moveItemDown(int $itemId): void
969
969
if ($ nextSibling ) {
970
970
$ item ->afterNode ($ nextSibling )->save ();
971
971
972
- // Refresh the tree to show new order
973
- $ this ->refreshTree ( );
972
+ // Just refresh without changing component keys
973
+ $ this ->dispatch ( ' menu-items-updated ' );
974
974
975
975
Notification::make ()
976
976
->title ('Menu item moved down successfully. ' )
You can’t perform that action at this time.
0 commit comments