Skip to content

Line always showing regardless of the canSee callback. #6915

@Mihkel100

Description

@Mihkel100
  • Nova Version: 5.7.5

Line always showing regardless of the canSee callback.

public function fields(NovaRequest $request)
{
    return [
        Stack::make('Testing', [
            Line::make('A')
                ->resolveUsing(
                    fn() => 'Should NOT see',
                )
            ->canSee(
                fn() => false
            ),
            Line::make('B')
                ->resolveUsing(
                    fn() => 'Should see',
                )
                ->canSee(
                    fn() => true
                ),
        ]),
    ]
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified bug by the Nova team

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions