Skip to content

Prompt.Select<TEnum>() throws ArgumentNullException: Items in v3.1.1. #357

@wolfpinz

Description

@wolfpinz

Just upgrade to v3.1.1. from v3.0.1.
Calling Prompt.Select<T>() with an enum type throws System.ArgumentNullException: Value cannot be null. (Parameter 'Items').

This worked previously (v3.0.1.):

var selected = Prompt.Select<MyEnum>("Pick one");

Explicitly passing Enum values also works now (v3.1.1.):

var selected = Prompt.Select("Pick one", Enum.GetValues<MyEnum>());

Is this intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions