laravel-form-components
laravel-form-components copied to clipboard
[date-picker] click-opens functionality lost after first click, using wire:model, on mobile devices
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:
After click:
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.
Solved temporarily by disabling the mobile:
<x-date-picker name="data_inicio" wire:model="data_inicio" clearable click-opens :options="['disableMobile' => 'true']" />