Skip to content

Commit

Permalink
rc-calendar RangeCalendar calls renderFooter() without args
Browse files Browse the repository at this point in the history
  • Loading branch information
sbusch committed Apr 26, 2019
1 parent 685f433 commit e8229d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/date-picker/RangePicker.tsx
Expand Up @@ -226,15 +226,15 @@ class RangePicker extends React.Component<any, RangePickerState> {
this.picker = node;
};

renderFooter = (...args: any[]) => {
renderFooter = () => {
const { ranges, renderExtraFooter } = this.props;
const { prefixCls, tagPrefixCls } = this;
if (!ranges && !renderExtraFooter) {
return null;
}
const customFooter = renderExtraFooter ? (
<div className={`${prefixCls}-footer-extra`} key="extra">
{renderExtraFooter(...args)}
{renderExtraFooter()}
</div>
) : null;
const operations = Object.keys(ranges || {}).map(range => {
Expand Down

0 comments on commit e8229d8

Please sign in to comment.