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

onDateSelect not triggerd (CreateForm not opened) #194

Open
David-Grass-Feria opened this issue Jun 25, 2024 · 3 comments
Open

onDateSelect not triggerd (CreateForm not opened) #194

David-Grass-Feria opened this issue Jun 25, 2024 · 3 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@David-Grass-Feria
Copy link

David-Grass-Feria commented Jun 25, 2024

Version 3.2.2

I use a costum Page, for the Widget.

<x-filament-panels::page>
    @livewire(\App\Livewire\ScheduleCalendarWidget::class)
</x-filament-panels::page>

`
All works perfect. But the onDateSelect not triggerd. When i click a empty day, the Modal CreateForm will not open.

After that i made a test, and use your trait.

use InteractsWithEvents;
 public function onDateSelect(string $start, ?string $end, bool $allDay, ?array $view, ?array $resource): void
    {
      dd('test');
    }

This not work.

But your Create Button works.

    protected function headerActions(): array
    {
        return [
            CreateAction::make(),
        ];
    }

This open the create form and works. But when i click a date in the calendar, the modal will not opened. And there is no erros in dev tools. I can not debug it.

@saade
Copy link
Owner

saade commented Jul 10, 2024

hey! did you added ->selectable() to the plugin configuration?

@saade saade self-assigned this Jul 10, 2024
@saade saade added bug Something isn't working question Further information is requested labels Jul 10, 2024
@David-Grass-Feria
Copy link
Author

Hey saade, thanks for your answere. Yes i made it. But in the last weeks i greated again, without your package. Now it works all. I dont know what is wrong. I added the fullcalendar without package, and it works.
You should check this event in your package:
dateClick: function(info) { // },

@SariMorgenshtern
Copy link

I'm trying to use the dateClick event: function(info) { // },
is he ok?

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

No branches or pull requests

3 participants