Skip to content

Commit 455ac41

Browse files
committed
fix: Broken select state transformation
1 parent f81d825 commit 455ac41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/forms/resources/views/components/select.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
$suffixIconColor = $getSuffixIconColor();
2727
$suffixLabel = $getSuffixLabel();
2828
$statePath = $getStatePath();
29-
$state = $getState();
29+
$state = $getRawState();
3030
$livewireKey = $getLivewireKey();
3131
@endphp
3232

@@ -161,7 +161,7 @@ class="fi-hidden"
161161
hasInitialNoOptionsMessage: @js($hasInitialNoOptionsMessage),
162162
initialOptionLabel: @js((blank($state) || $isMultiple) ? null : $getOptionLabel()),
163163
initialOptionLabels: @js((filled($state) && $isMultiple) ? $getOptionLabelsForJs() : []),
164-
initialState: @js(is_array($state) ? $state : ($state !== null ? (string) $state : null)),
164+
initialState: @js($state),
165165
isAutofocused: @js($isAutofocused),
166166
isDisabled: @js($isDisabled),
167167
isHtmlAllowed: @js($isHtmlAllowed),

0 commit comments

Comments
 (0)