提交 42e21938 编写于 作者: A afc163

Fix key warning

上级 f02cd9cd
......@@ -41,10 +41,11 @@ export default class Search extends React.Component<SearchProps, any> {
type="primary"
size={size}
onClick={this.onSearch}
key="enterButton"
>
{enterButton === true ? <Icon type="search" /> : enterButton}
</Button>
) : <Icon className={`${prefixCls}-icon`} type="search" />;
) : <Icon className={`${prefixCls}-icon`} type="search" key="searchIcon" />;
const searchSuffix = suffix ? [suffix, buttonOrIcon] : buttonOrIcon;
const inputClassName = classNames(prefixCls, className, {
[`${prefixCls}-enter-button`]: !!enterButton,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册