diff --git a/src/input/InputButton.tsx b/src/input/InputButton.tsx index 48d0b614a2..60a8e04d90 100644 --- a/src/input/InputButton.tsx +++ b/src/input/InputButton.tsx @@ -86,7 +86,7 @@ const InputButton = React.forwardRef((props, className={classNames(inputCls, wrapperCls)} type="button" // when set Input type=button, the placeholder is invalid - value={value || placeholder} + value={value ?? placeholder} title={value as string} onChange={onChange} prefix={customizePrefix} diff --git a/src/select/Select.tsx b/src/select/Select.tsx index 5856b58a6d..5cadcb0ccf 100644 --- a/src/select/Select.tsx +++ b/src/select/Select.tsx @@ -78,6 +78,7 @@ const Select: React.FC & { isSelect?: boolean } = (props) => { const handleOnClear = (e: React.MouseEvent) => { onClear?.(); onChange?.(); + setValue(''); handVisibleChange(false); e.stopPropagation(); };