What happened?
In following lines, the rule not applied at all:
|
$component->rule( |
|
'date', |
|
static fn (Flatpickr $component): bool => $component->isMultiplePicker() && ! $component->isRangePicker() && $component->hasDate(), |
|
); |
Filament calls the dehydrate after the validation happens:
https://github.com/filamentphp/filament/blob/4b2665d934235f05dc49a9668c2c35c073d42a00/packages/schemas/src/Concerns/HasState.php#L418-L427
How to reproduce the bug
Check if date rule applied or not.
|
$component->rule( |
|
'date', |
|
static fn (Flatpickr $component): bool => $component->isMultiplePicker() && ! $component->isRangePicker() && $component->hasDate(), |
|
); |
Package Version
5
PHP Version
8.3
Laravel Version
12
Which operating systems does with happen with?
macOS
Notes
No response
What happened?
In following lines, the rule not applied at all:
flatpickr/src/Forms/Components/Flatpickr.php
Lines 511 to 514 in 413a519
Filament calls the dehydrate after the validation happens:
https://github.com/filamentphp/filament/blob/4b2665d934235f05dc49a9668c2c35c073d42a00/packages/schemas/src/Concerns/HasState.php#L418-L427
How to reproduce the bug
Check if date rule applied or not.
flatpickr/src/Forms/Components/Flatpickr.php
Lines 511 to 514 in 413a519
Package Version
5
PHP Version
8.3
Laravel Version
12
Which operating systems does with happen with?
macOS
Notes
No response