wireui icon indicating copy to clipboard operation
wireui copied to clipboard

DateTimepicker Error date is not defined

Open Jhamnerx opened this issue 11 months ago • 6 comments

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 avatar Mar 26 '24 19:03 Jhamnerx

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

kennyelliott avatar Apr 12 '24 12:04 kennyelliott

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

Jhamnerx avatar Apr 12 '24 23:04 Jhamnerx

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>

django-wong avatar Apr 17 '24 09:04 django-wong

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

Jhamnerx avatar Apr 17 '24 13:04 Jhamnerx

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

KevinEscobarV avatar Apr 19 '24 06:04 KevinEscobarV

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

image

image

image

image

caiochami avatar Apr 26 '24 02:04 caiochami

Thank you for using WireUi!

We released stable version 2, with new features and improvements. Check if the mentioned problem has been resolved, if not, reopen this issue and we will provide more information. Thank you in advance, we are organizing Issues for better maintenance.

joaopalopes24 avatar Jun 13 '24 22:06 joaopalopes24