We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ccf224 commit 13aa6a3Copy full SHA for 13aa6a3
tests/range.spec.tsx
@@ -1036,4 +1036,15 @@ describe('Picker.Range', () => {
1036
testOrderOnTime(false, '23:00:00', '02:00:00');
1037
testOrderOnTime(true, '02:00:00', '23:00:00');
1038
});
1039
+
1040
+ // https://github.com/ant-design/ant-design/issues/21084
1041
+ it('should not jump back to current date after select', () => {
1042
+ const onPanelChange = jest.fn();
1043
+ const wrapper = mount(<MomentRangePicker onPanelChange={onPanelChange} />);
1044
+ wrapper.openPicker();
1045
+ wrapper.clickButton('super-prev');
1046
+ wrapper.selectCell(3);
1047
+ wrapper.selectCell(4);
1048
+ matchValues(wrapper, '1989-09-03', '1989-09-04');
1049
+ });
1050
0 commit comments