mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-30 18:42:45 +08:00
Update Select.php
This commit is contained in:
@@ -1243,10 +1243,12 @@ class Select extends Field implements Contracts\HasAffixActions, Contracts\HasNe
|
||||
{
|
||||
parent::hydrateDefaultState($hydratedDefaultState);
|
||||
|
||||
$state = $this->getState();
|
||||
if (is_bool($state = $this->getState())) {
|
||||
$state = $state ? 1 : 0;
|
||||
|
||||
$this->state($state);
|
||||
|
||||
if (is_bool($state)) {
|
||||
$this->state($state ? 1 : 0);
|
||||
Arr::set($hydratedDefaultState, $this->getStatePath(), $state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user