select icon indicating copy to clipboard operation
select copied to clipboard

Showing 0 instead of empty string in OptionsList

Open inoyakaigor opened this issue 3 years ago • 0 comments

In cases while Select had an Option with label '' (empty string) and value 0 the Select renders the 0 image

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

inoyakaigor avatar Dec 28 '22 11:12 inoyakaigor