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

DateTimepicker Error date is not defined #879

Open
Jhamnerx opened this issue Mar 26, 2024 · 6 comments
Open

DateTimepicker Error date is not defined #879

Jhamnerx opened this issue Mar 26, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Jhamnerx
Copy link

Describe the bug

image
I get the following error when opening the modal containing the datetimepicker component

To Reproduce
Steps to reproduce the behavior:
image
2. Click on '....'
3. Scroll down to '....'
4. See error

Dependencies

  • WireUI Version: v1.19.0
  • Laravel Version: 10.48.4
  • Alpine.js Version: include in livewire
  • Livewire Version: v3.4.9
  • Lang: en_US
@Jhamnerx Jhamnerx added the bug Something isn't working label Mar 26, 2024
@kennyelliott
Copy link

I'm having the same issue with the datetime picker.

@Jhamnerx
Copy link
Author

The error only happens when in a modal that is opened from livewire

@django-wong
Copy link

Maybe a workaround here if you are using wire:model="show_my_modal" with the modal component.

Firstly, use the live modifier wire:model.live="show_my_modal"

Then wrap your content that contains the date picker with a @if statement like:

<x-wireui-modal.card wire:model.live="show_my_modal">
    @if($show_my_modal) 
        <<x-wireui-datetime-picker />
    @endif
</x-wireui-modal.card>

@Jhamnerx
Copy link
Author

I am using wire:model.live.
I'm going to try with @if

@KevinEscobarV
Copy link

In fact, the error occurs when trying to update the date from the backend, does anyone have a solution to this?

@caiochami
Copy link

caiochami commented Apr 26, 2024

I have the same issue. It started to happen after upgrading Livewire to "v3.4.11" from "v3.4.4".

image

image

image

image

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

6 participants