fix : input-text选择器模式下,clearable无效问题 (#9293)

Co-authored-by: junjie.liu <junjie.liu@junjieliudeMacBook-Pro.local>
This commit is contained in:
pingbaobao 2024-01-03 10:09:32 +08:00 committed by GitHub
parent 76831e12ef
commit 27a9bbeb26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -839,12 +839,14 @@ export default class TextControl extends React.PureComponent<
</>
{clearable && !disabled && !readOnly && value ? (
<a onClick={this.clearValue}>
<a
onClick={this.clearValue}
className={cx('TextControl-clear')}
>
<Icon
icon="input-clear"
className="icon"
classNameProp={cx('TextControl-clear')}
iconContent="InputBox-clear"
iconContent="InputText-clear"
/>
</a>
) : null}