rawilk / laravel-form-components

Form components built for Tailwind & Livewire.
https://randallwilk.dev/docs/laravel-form-components
MIT License
397 stars 44 forks source link

[date-picker] click-opens functionality lost after first click, using wire:model, on mobile devices #189

Open jescampos opened 5 months ago

jescampos commented 5 months ago

Laravel Form Components Version

v8.1

Laravel Version

v10.10

Alpine Version

v3.13

Bug description

The first time we click on the input it open the date picker and works fine, but after that, can't use it again without page refresh.

Before click: image

After click: image

Steps to reproduce

`

Data de actual:
                        <div class="ml-2">
                            <x-date-picker name="data_inicio" wire:model="data_inicio" clearable click-opens />
                        </div>
                    </div>`

Relevant log output

No erros found on console.
jescampos commented 5 months ago

Solved temporarily by disabling the mobile:

<x-date-picker name="data_inicio" wire:model="data_inicio" clearable click-opens :options="['disableMobile' => 'true']" />