update comment

This commit is contained in:
zombiej 2019-04-05 23:33:19 +08:00
parent 0a905f192c
commit 533ae050f0

View File

@ -115,7 +115,7 @@ export default class Item extends React.Component<ListItemProps, any> {
const Tag = grid ? 'div' : 'li';
const itemChildren = (
<Tag
{...others as any} // `li` element don't have `onCopy` prop. Cast to any.
{...others as any} // `li` element `onCopy` prop args is not same as `div`
className={classNames(`${prefixCls}-item`, className, {
[`${prefixCls}-item-no-flex`]: !this.isFlexMode(),
})}