Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 3d1b604

Browse files
committed
Update Select.php
1 parent c5d70d3 commit 3d1b604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Form/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function mapOptions($options): array
152152
// Check for a "list" array, so something like [1, 2, 3].
153153
// We'll transform this into [1 => 1, 2 => 2, 3 => 3].
154154
if (Arr::isList($options) && $collection->filter(fn ($option) => is_string($option))->count() === count($options)) {
155-
$options = array_combine($options, $options);
155+
$collection = Collection::make(array_combine($options, $options));
156156
}
157157

158158
return $collection->map(function ($label, $value) {

0 commit comments

Comments
 (0)