fix(container): make blank string as valid value EE-6852 (#11373)

pull/11378/head
cmeng 8 months ago committed by GitHub
parent 1303a08f5a
commit 3cd58cac54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -94,7 +94,9 @@ export function SingleSelect<TValue = string>({
...aria
}: SingleProps<TValue>) {
const selectedValue =
value || (typeof value === 'number' && value === 0)
value ||
(typeof value === 'number' && value === 0) ||
(typeof value === 'string' && value === '')
? _.first(findSelectedOptions<TValue>(options, value))
: null;

Loading…
Cancel
Save