Update Select.php

This commit is contained in:
Dan Harrin
2023-10-09 12:16:54 +01:00
committed by GitHub
parent da70161553
commit 3ecd673c49
+5 -3
View File
@@ -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);
}
}
}