File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,14 @@ public function delete(): void
90
90
91
91
public function moveUp (): void
92
92
{
93
- // Dispatch event to parent component to move item up
94
- $ this ->dispatch ('move-item-up ' , ['itemId ' => $ this ->item ->id ]);
93
+ // Call parent method directly to avoid component refresh issues
94
+ $ this ->dispatch ('move-item-up ' , ['itemId ' => $ this ->item ->id ])-> to ( ' filament-flexible-content-block-pages::menu-resource.pages.manage-menu-items ' ) ;
95
95
}
96
96
97
97
public function moveDown (): void
98
98
{
99
- // Dispatch event to parent component to move item down
100
- $ this ->dispatch ('move-item-down ' , ['itemId ' => $ this ->item ->id ]);
99
+ // Call parent method directly to avoid component refresh issues
100
+ $ this ->dispatch ('move-item-down ' , ['itemId ' => $ this ->item ->id ])-> to ( ' filament-flexible-content-block-pages::menu-resource.pages.manage-menu-items ' ) ;
101
101
}
102
102
103
103
public function render ()
Original file line number Diff line number Diff line change @@ -941,7 +941,7 @@ public function moveItemUp(int $itemId)
941
941
->send ();
942
942
943
943
// Force page reload to avoid component issues
944
- return redirect ()->to (request ()-> url ( ));
944
+ return redirect ()->to (static :: getUrl ([ ' record ' => $ this -> record -> id ] ));
945
945
}
946
946
} catch (Exception $ e ) {
947
947
Notification::make ()
@@ -975,7 +975,7 @@ public function moveItemDown(int $itemId)
975
975
->send ();
976
976
977
977
// Force page reload to avoid component issues
978
- return redirect ()->to (request ()-> url ( ));
978
+ return redirect ()->to (static :: getUrl ([ ' record ' => $ this -> record -> id ] ));
979
979
}
980
980
} catch (Exception $ e ) {
981
981
Notification::make ()
You can’t perform that action at this time.
0 commit comments