Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PickerInput/Popup/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function Footer(props: FooterProps) {

return (
<div className={`${prefixCls}-footer`}>
{extraNode}
{extraNode && <div className={`${prefixCls}-footer-extra`}>{extraNode}</div>}
{rangeNode}
</div>
);
Expand Down
16 changes: 0 additions & 16 deletions src/utils/getExtraFooter.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion tests/picker.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ describe('Picker.Basic', () => {
);

function matchFooter(mode: string) {
expect(document.querySelector('.rc-picker-footer').textContent).toEqual(mode);
expect(document.querySelector('.rc-picker-footer-extra').textContent).toEqual(mode);
expect(renderExtraFooter.mock.calls[renderExtraFooter.mock.calls.length - 1][0]).toEqual(
mode,
);
Expand Down
2 changes: 1 addition & 1 deletion tests/range.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe('Picker.Range', () => {
<DayRangePicker renderExtraFooter={() => <p>footer</p>} picker="year" />,
);
openPicker(container);
expect(document.querySelector('.rc-picker-footer').textContent).toEqual('footer');
expect(document.querySelector('.rc-picker-footer-extra').textContent).toEqual('footer');
expect(document.querySelectorAll('.rc-picker-header-view')[0].textContent).toEqual(
'1990年-1999年',
);
Expand Down