FilamentF
Filament3y ago
1 reply
undercode

DatePicker "hintAction" error: Xdebug has detected a possible infinite loop

When I set a "hintAction" in a DatePicker component I get "possible infinite loop" error which is gone after removing it or setting to null.

This is the error I get:

https://flareapp.io/share/dPbqNp4m#F257

And this is an example code:

DatePicker::make('assistant_date')
    ->label('Fecha')
    ->displayFormat('D, j [de] M. [de] Y')
    ->withoutTime()
    ->disabled(fn (Closure $get) => (int) $get('assistant') === 0)
    ->hintAction(
        Action::make('copy_date')
            ->action(null)
    )
Flare
Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames - The error occurred at http://new-rtcf.local/admin/events/5/edit
Was this page helpful?