Skip to content

[Bug]: cardAction does evaluate record on action #88

@RhysLees

Description

@RhysLees

What happened?

When setting the cardAction it does not evaluate the record so the action fails. (clicking the action from the action group works fine.

Image

How to reproduce the bug

     public function board(Board $board): Board
    {
        return $board
            ->query($this->getEloquentQuery())
            ->recordTitleAttribute('title')
            ->columnIdentifier('status')
            ->positionIdentifier('position') // Enable drag-and-drop with position field
            ->columns(fn() => $this->columns())
            ->cardSchema(fn (Schema $schema) => $this->cardInfoListSchema($schema))
            ->cardAction( 'view')
            ->cardActions([
                ViewAction::make('view')
                ->model(Task::class)
                ->schema(fn (Schema $schema) => $this->taskInfoListSchema($schema))
                ->slideOver()
                ->modalWidth(Width::ThreeExtraLarge)
                ->icon('heroicon-o-eye'),
            ]);
    }

Package Version

3.0.2

PHP Version

8.4

Laravel Version

12

Which operating systems does with happen with?

macOS

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions