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 - Mobile - Shows native calendar and Flux calendar depending on where you click #1105

Open
3 tasks done
0hra opened this issue Feb 19, 2025 · 4 comments
Open
3 tasks done

Comments

@0hra
Copy link

0hra commented Feb 19, 2025

Flux version

v2.0.0

Livewire version

v3.5.19

Tailwind version

v4.0

What is the problem?

iOS + Safari
If I click on the input field it shows the native calendar. If I click on the calendar-icon it shows the Flux calendar.
See attached video.

date.picker.2.mov

Code snippets

<flux:date-picker wire:model="date">
    <x-slot name="trigger">
        <flux:date-picker.input />
    </x-slot>
</flux:date-picker>

How do you expect it to work?

Show only Flux calendar, not the native one.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.
@0hra 0hra changed the title Date picker - Mobile shows native calendar and Flux calendar depending on where you click Date picker - Mobile - Shows native calendar and Flux calendar depending on where you click Feb 19, 2025
@jeffchown
Copy link

@0hra Same thing happens for me.

@calebporzio
Copy link
Contributor

Agreed, odd. But actually kind of makes sense that it's happening given that the input is type="date".

So what is expected behavior here for mobile?

A) Disable Flux's date picker for the input trigger and just let the mobile one get triggered?
B) Somehow like expand the Flux date picker trigger target area on mobile to fill the entire input so that only Flux's gets triggered?

Hoping that makes sense? Open to other options as well.

@jeffchown
Copy link

@calebporzio I think if I explicitly used a flux:date-picker in my code, then I'd expect/opt-for B

@0hra
Copy link
Author

0hra commented Feb 19, 2025

Yep, option B all the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants