Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Fix month calender footer, close ant-design/ant-design#8184
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 2, 2018
1 parent 2119dc1 commit 6995454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/antd-month-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ ReactDOM.render(
onChange={onStandaloneChange}
monthCellContentRender={onMonthCellContentRender}
defaultValue={defaultCalendarValue}
renderFooter={() => 'extra footer'}
/>

<div style={{ marginTop: 200 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/calendar/CalendarFooter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const CalendarFooter = createReactClass({
}

let footerBtn;
if (nowEl || timePickerBtn || okBtn) {
if (nowEl || timePickerBtn || okBtn || extraFooter) {
footerBtn = (
<span className={`${prefixCls}-footer-btn`}>
{extraFooter}
Expand Down

0 comments on commit 6995454

Please sign in to comment.