Skip to content

Commit 610728a

Browse files
committed
Use onBlur for name field
1 parent 3562cb4 commit 610728a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Fields/Repeater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function getForm(): array
158158
->label(__('Name'))
159159
->required()
160160
->placeholder(__('Name'))
161-
->live(debounce: 250)
161+
->live(onBlur: true)
162162
->afterStateUpdated(fn(Set $set, ?string $state) => $set('slug', Str::slug($state))),
163163
TextInput::make('slug')
164164
->readonly(),

src/Filament/RelationManagers/FieldsRelationManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function form(Form $form): Form
4242
->label(__('Name'))
4343
->required()
4444
->placeholder(__('Name'))
45-
->live(debounce: 250)
45+
->live(onBlur: true)
4646
->afterStateUpdated(fn(Set $set, ?string $state) => $set('slug', Str::slug($state))),
4747

4848
TextInput::make('slug')

0 commit comments

Comments
 (0)