Skip to content

Commit

Permalink
🐛 Fix vertical list item with extra
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 11, 2019
1 parent a730e87 commit fc58fd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/list/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default class Item extends React.Component<ListItemProps, any> {
[`${prefixCls}-item-no-flex`]: !this.isFlexMode(),
})}
>
{itemLayout === 'vertical'
{itemLayout === 'vertical' && extra
? [
<div className={`${prefixCls}-item-main`} key="content">
{children}
Expand Down
6 changes: 3 additions & 3 deletions components/skeleton/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ exports[`renders ./components/skeleton/demo/list.md correctly 1`] = `
class="ant-spin-container"
>
<div
class="ant-list-item"
class="ant-list-item ant-list-item-no-flex"
>
<div
class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active"
Expand Down Expand Up @@ -152,7 +152,7 @@ exports[`renders ./components/skeleton/demo/list.md correctly 1`] = `
</div>
</div>
<div
class="ant-list-item"
class="ant-list-item ant-list-item-no-flex"
>
<div
class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active"
Expand Down Expand Up @@ -181,7 +181,7 @@ exports[`renders ./components/skeleton/demo/list.md correctly 1`] = `
</div>
</div>
<div
class="ant-list-item"
class="ant-list-item ant-list-item-no-flex"
>
<div
class="ant-skeleton ant-skeleton-with-avatar ant-skeleton-active"
Expand Down

0 comments on commit fc58fd2

Please sign in to comment.