mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +08:00
fix: fix list.item actions empty (#49842)
* fix: fix list.item actions empty Signed-off-by: Cody Chan <int64ago@gmail.com> * Update components/list/Item.tsx Signed-off-by: afc163 <afc163@gmail.com> * Apply suggestions from code review Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: Cody Chan <int64ago@gmail.com> Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
85c31f1c43
commit
53b6688b41
@ -107,7 +107,7 @@ const InternalItem = React.forwardRef<HTMLDivElement, ListItemProps>((props, ref
|
|||||||
};
|
};
|
||||||
|
|
||||||
const prefixCls = getPrefixCls('list', customizePrefixCls);
|
const prefixCls = getPrefixCls('list', customizePrefixCls);
|
||||||
const actionsContent = actions?.length && (
|
const actionsContent = (actions && actions.length > 0) && (
|
||||||
<ul
|
<ul
|
||||||
className={classNames(`${prefixCls}-item-action`, moduleClass('actions'))}
|
className={classNames(`${prefixCls}-item-action`, moduleClass('actions'))}
|
||||||
key="actions"
|
key="actions"
|
||||||
|
Loading…
Reference in New Issue
Block a user