Skip to content

Allow for passing null / undefined into a typed, none required prop #2411

@rmp135

Description

@rmp135

If a prop is declared with type validation but required:false, the validation will fail when passing either null or undefined as the value.

I think that the type validation should only occur on none required props if an actual value (not null or undefined) has been passed. I believe this is similar to issue #1070.

Here's a JSBin demonstrating this.

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