Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jescampos opened this issue May 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jescampos
Copy link

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 jescampos added the bug Something isn't working label May 31, 2024
@jescampos jescampos changed the title [date-picker] click-opens functionality lost after first click, using wire:model, on mibile devices [date-picker] click-opens functionality lost after first click, using wire:model, on mobile devices May 31, 2024
@jescampos
Copy link
Author

jescampos commented May 31, 2024

Solved temporarily by disabling the mobile:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant