diff --git a/src/components/ResultBox.tsx b/src/components/ResultBox.tsx index a3da47800..6ab81481f 100644 --- a/src/components/ResultBox.tsx +++ b/src/components/ResultBox.tsx @@ -173,7 +173,9 @@ export class ResultBox extends React.Component { {children} - {clearable && !disabled && Array.isArray(result) && result.length ? ( + {clearable && + !disabled && + (Array.isArray(result) ? result.length : result) ? ( item[valueField || 'value']); }