Skip to content

Commit 0bbb6a9

Browse files
authored
Generate incident template slug on blur from name field (#205)
1 parent 4afdb25 commit 0bbb6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filament/Resources/IncidentTemplateResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function form(Form $form): Form
3030
Forms\Components\TextInput::make('name')
3131
->label(__('cachet::incident_template.form.name_label'))
3232
->required()
33-
->live(debounce: 250)
33+
->live(onBlur: true)
3434
->afterStateUpdated(fn (Set $set, ?string $state) => $set('slug', Str::slug($state)))
3535
->autocomplete(false),
3636
Forms\Components\TextInput::make('slug')

0 commit comments

Comments
 (0)