Enhance SolutionResource form functionality: add debounce to slug generation for improved user experience during input, and adjust layout in show.blade.php by reducing column width for better content presentation.
This commit is contained in:
1 parent
dd167d9aaa
commit
e97a80bfdb
2 files changed
+18
-5
No files matched your search
@@ -27,7 +27,8 @@ public static function form(Form $form): Form
|
||||
->required()
|
||||
->maxLength(255)
|
||||
->reactive()
|
||||
->afterStateUpdated(fn (string $operation, $state, Forms\Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null),
|
||||
->afterStateUpdated(fn (string $operation, $state, Forms\Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null)
|
||||
->debounce('1000ms'),
|
||||
|
||||
Forms\Components\TextInput::make('slug')
|
||||
->required()
|
||||
|
||||
Reference in new issue
Block a user