Closed martin-ro closed 11 months ago
I should add that this is with a table action outside of admin panel
Hi Martin, Kindly share your component's code to help me reproduce the issue. Thanks.
On Fri, Aug 26, 2022, 8:40 AM Martin Ro @.***> wrote:
I should add that this is with a table action outside of admin panel
— Reply to this email directly, view it on GitHub https://github.com/savannabits/filament-flatpickr/issues/6#issuecomment-1228076495, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKZWMNENTAEJKXWN374VZTV3BKEBANCNFSM57VNPM7Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi,
it's just a livewire component implementing Tables\Contracts\HasTable
and in getTableActions
Tables\Actions\Action::make('book')
->label(__('Book Lesson'))
->mountUsing(fn (Forms\ComponentContainer $form, Teacher $record) => $form->fill([
'teacher_id' => $record->user->userable_id,
]))
->form([
Group::make()->schema([
Flatpickr::make('date),
])->columns(2),
])
If you want to reproduce, just create a Livewire component and setup a table like here
and in the tables getTableActions
create a modal action with the Flatpickr field. I hope you know what I mean? I can't really post the whole component :)
Ok, digging around a bit, all the assets are registered FlatpickrServiceProvider
which means they are only loaded within Filament but not in a standalone form or table component.
Ok, digging around a bit, all the assets are registered
FlatpickrServiceProvider
which means they are only loaded within Filament but not in a standalone form or table component.
This is actually the case. Might you be able to do a PR to support standalone usage?
Any update?
I will be re-writing most parts of the component tomorrow, hopefully it will fix this issue.
On Sun, Jan 1, 2023, 10:30 PM Bart @.***> wrote:
Any update?
— Reply to this email directly, view it on GitHub https://github.com/savannabits/filament-flatpickr/issues/6#issuecomment-1368515752, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKZWMK67TCYDJ66FB7K26TWQHLL7ANCNFSM57VNPM7Q . You are receiving this because you commented.Message ID: @.***>
@coolsam726 I wonder if you had a chance to update this package to work with standalone forms
@coolsam726 I wonder if you had a chance to update this package to work with standalone forms
+1
@coolsam726 I wonder if you had a chance to update this package to work with standalone forms
+1
Fixed in this PR #27
When using the field in an action modal I get