Skip to content

nullable and searchable MorphTo displays 2nd input #6934

@alies-dev

Description

@alies-dev
  • Laravel Version: 12.35.0
  • Nova Version: v5.7.6

Description:

MorphTo nullable field when it's searchable has 2nd input in the accessible state, even if them null option is chosen, than may confuse users:

Image
            MorphTo::make('External Content Provider', 'externalContentProvider')
                ->types([
                    Article::class,
                ])
                ->withSubtitles()
                ->default(null)
                ->nullable()
                ->searchable()
                ->hideFromIndex()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions