diff --git a/src/Forms/Accordions.php b/src/Forms/Accordions.php index 438b5a4..d73c191 100644 --- a/src/Forms/Accordions.php +++ b/src/Forms/Accordions.php @@ -43,7 +43,7 @@ public function getActiveAccordion(): int public function accordions(array | Closure $accordions): static { - $this->childComponents($accordions); + $this->childComponents(array_filter($accordions)); return $this; }