Skip to content

Commit

Permalink
Bug Fix: Component State was being submitted as null regardless of th…
Browse files Browse the repository at this point in the history
…e configuration

- Fixes #34
- Fixes #35
  • Loading branch information
coolsam726 committed Aug 10, 2023
1 parent bab161f commit 9243b81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/views/forms/components/flatpickr.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="stylesheet" id="pickr-theme" type="text/css" href="{{$getThemeAsset()}}">
<div
x-data="flatpickrDatepicker({
{{-- state: $wire.{{ $applyStateBindingModifiers("entangle('{$getStatePath()}')") }},--}}
state: $wire.{{ $applyStateBindingModifiers("entangle('{$getStatePath()}')") }},
packageConfig: @js($config),
attribs: @js($attribs)
})"
Expand Down Expand Up @@ -74,6 +74,7 @@ class="fi-fo-text-input"
'disabled' => $isDisabled,
'id' => $id,
'x-ref' => 'picker',
'x-model' => 'state',
'inlinePrefix' => $isPrefixInline && (count($prefixActions) || $prefixIcon || filled($prefixLabel)),
'inlineSuffix' => $isSuffixInline && (count($suffixActions) || $suffixIcon || filled($suffixLabel)),
'placeholder' => $getPlaceholder(),
Expand Down

0 comments on commit 9243b81

Please sign in to comment.