laravel-form-components icon indicating copy to clipboard operation
laravel-form-components copied to clipboard

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

Open jescampos opened this issue 1 year ago • 1 comments

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

<div class="flex mt-2"> <div class="my-auto">Data de actual:</div> <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 avatar May 31 '24 10:05 jescampos

Solved temporarily by disabling the mobile:

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

jescampos avatar May 31 '24 10:05 jescampos