diff --git a/src/Components/RadioGroup.php b/src/Components/RadioGroup.php index 0bb3d49..4686fdd 100644 --- a/src/Components/RadioGroup.php +++ b/src/Components/RadioGroup.php @@ -228,7 +228,7 @@ private function renderMultiColumn(int $activeIndex): array $lines = []; $lines[] = ''; - $chunks = array_chunk($this->choices, $this->columns, preserve_keys: true); + $chunks = array_chunk($this->choices, max(1, $this->columns), preserve_keys: true); foreach ($chunks as $row) { $parts = [];