Miguel García
Miguel García
FFilament
Created by Miguel García on 1/27/2024 in #❓┊help
Table overflow after composer update
No description
15 replies
FFilament
Created by Miguel García on 11/23/2023 in #❓┊help
Filtering by a related table column changes the table id
No description
10 replies
FFilament
Created by Miguel García on 10/13/2023 in #❓┊help
Toggle component afterStateUpdated event does not fire on false
Hi, the after state update event is not triggered when you switch from on ("1") to off (""). The Select component, when the 'placeholder' option is selected does not fire the event either. Is this a bug? Is there a way to fire the event when the Toggle is se to off?
Toggle::make('active')
->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) {
dd($state, $old);
})
->live(),
Toggle::make('active')
->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) {
dd($state, $old);
})
->live(),
2 replies
FFilament
Created by Miguel García on 10/11/2023 in #❓┊help
'Create' - 'Create & create another' validation
No description
13 replies
FFilament
Created by Miguel García on 10/11/2023 in #❓┊help
Select afterStateUpdated does not fire when selection is cleared
When the select component is set to native HTML5 and you choose the placeholder option ('Select an option' option) then afterStateUpdated event raises with $status null, but if you set the select component to JavaScript and you click the x button afterStateUpdated is not fired and the placeholder option can't be selected even if you use ->selectablePlaceholder(true)
Select::make('status')
->afterStateUpdated(fn (?string $state) => dd($state))
->selectablePlaceholder(true)
->live()
->native(false)
->options([
'draft' => 'Draft',
'reviewing' => 'Reviewing',
'published' => 'Published',
]),
Select::make('status')
->afterStateUpdated(fn (?string $state) => dd($state))
->selectablePlaceholder(true)
->live()
->native(false)
->options([
'draft' => 'Draft',
'reviewing' => 'Reviewing',
'published' => 'Published',
]),
Is there any chance to catch the null option or at least when the user clicks the cross button to clear the selection?
25 replies