Browse Source

update comment

pull/15890/head
zombiej 6 years ago
parent
commit
533ae050f0
  1. 2
      components/list/Item.tsx

2
components/list/Item.tsx

@ -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(),
})}

Loading…
Cancel
Save