Skip to content

Different behavior between type [Boolean, String] and type String in custom my-select components #12531

@rukonmin

Description

@rukonmin

Version

2.6.14

Reproduction link

codesandbox.io

Steps to reproduce

In MyBooleanStringSelect component

  1. prop value = ''
  2. Display result is True

What is expected?

Empty string value

What is actually happening?

Value is True


MyBooleanStringSelect and MyStringBooleanSelect have different behavior for prop value equals to ''

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