Skip to content

Commit

Permalink
Merge pull request #36 from savannabits/3.x-dev
Browse files Browse the repository at this point in the history
Bug Fix: Component State was always NULL
  • Loading branch information
coolsam726 authored Aug 10, 2023
2 parents e324025 + 9243b81 commit c1a7487
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 c1a7487

Please sign in to comment.