Open inoyakaigor opened 1 year ago
In cases while Select had an Option with label '' (empty string) and value 0 the Select renders the 0
''
0
This hapens because of the code: https://github.com/react-component/select/blob/824383d6f45b2de5cb432437ce8bd9d0704c6a6f/src/OptionList.tsx#L339-L341
For context: we had moved from our own ui-kit to Antd and in our ui-kit using the empty string was neccessary for resetting the select option
In cases while Select had an Option with label
''
(empty string) and value0
the Select renders the0
This hapens because of the code: https://github.com/react-component/select/blob/824383d6f45b2de5cb432437ce8bd9d0704c6a6f/src/OptionList.tsx#L339-L341
For context: we had moved from our own ui-kit to Antd and in our ui-kit using the empty string was neccessary for resetting the select option