Skip to content

Failed prop type: Invalid prop flip of value null #386

@nipponvn0803

Description

@nipponvn0803

Describe the bug
The flip prop has null as default value, here.
but it does not accept null as a valid value, here.

Reproducible test case
CodeSandbox link
Clicking the flip button will show an error in console.

Expected behavior
It should accept null as a valid value and not show any error.

Desktop (please complete the following information):

  • Browser: Chrome
  • Version: 85.0.4183.102 (Official Build) (64-bit)

Additional context
None

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