diff --git a/src/Filament/Resources/NavigationResource.php b/src/Filament/Resources/NavigationResource.php index 3f583eb..9a79381 100644 --- a/src/Filament/Resources/NavigationResource.php +++ b/src/Filament/Resources/NavigationResource.php @@ -46,12 +46,14 @@ public static function form(Form $form): Form ->label(__('filament-navigation::filament-navigation.attributes.name')) ->reactive() ->debounce() - ->afterStateUpdated(function (?string $state, Set $set) { + ->afterStateUpdated(function (?string $state, Set $set, string $context) { if (! $state) { return; } - $set('handle', Str::slug($state)); + if ($context == 'create') { + $set('handle', Str::slug($state)); + } }) ->required(), ViewField::make('items')