FilamentF
Filament3y ago
18 replies
DanielvdSpoel

Javascript error when opening action

Hey all!

I have the following action on a custom page:
    public function getActions(): array
    {
        return [
            Action::make('something')
                ->label('Dag selecteren')
                ->action(function (array $data): void {
                    dd($data);
                })
                ->form([
                    DatePicker::make('date')
                        ->label('Dag')
                        ->required(),
                ])
        ];
    }

When i click on the action nothing happens (except a page refresh?) and i get this error in my console;

index.js:34 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'fingerprint')
    at new Component (index.js:34:40)
    at onNodeAdded (index.js:496:40)
    at callHook (morphdom.js:35:20)
    at handleNodeAdded (morphdom.js:140:13)
    at morphdom.js:407:25
    at morphEl (morphdom.js:219:17)
    at morphdom.js:332:37
    at morphEl (morphdom.js:219:17)
    at morphdom.js:463:13
    at Component.value (index.js:38

Does anyknow what's going on?
Was this page helpful?