Skip to content

Commit 67fece6

Browse files
chore(deps): bump @rc-component/trigger from 1.18.3 to 2.0.0 (#772)
* chore(deps): bump @rc-component/trigger from 1.18.3 to 2.0.0 Bumps [@rc-component/trigger](https://github.com/react-component/trigger) from 1.18.3 to 2.0.0. - [Release notes](https://github.com/react-component/trigger/releases) - [Changelog](https://github.com/react-component/trigger/blob/master/HISTORY.md) - [Commits](react-component/trigger@v1.18.3...2.0.0) --- updated-dependencies: - dependency-name: "@rc-component/trigger" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * test: fix test case --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: 二货机器人 <[email protected]>
1 parent 4c89fa0 commit 67fece6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"dependencies": {
4141
"@babel/runtime": "^7.10.1",
42-
"@rc-component/trigger": "^1.5.0",
42+
"@rc-component/trigger": "^2.0.0",
4343
"classnames": "^2.2.1",
4444
"rc-overflow": "^1.3.2",
4545
"rc-resize-observer": "^1.4.0",

tests/new-range.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ describe('NewPicker.Range', () => {
686686
});
687687

688688
// Close panel to auto focus next end field
689-
fireEvent.click(document.body);
689+
fireEvent.mouseDown(document.body);
690690
act(() => {
691691
jest.runAllTimers();
692692
});
@@ -705,7 +705,7 @@ describe('NewPicker.Range', () => {
705705
});
706706

707707
// Close panel to auto focus next end field
708-
fireEvent.click(document.body);
708+
fireEvent.mouseDown(document.body);
709709

710710
act(() => {
711711
jest.runAllTimers();

tests/picker.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ describe('Picker.Basic', () => {
171171

172172
for (let i = 0; i < 10; i += 1) {
173173
act(() => {
174-
fireEvent.click(document.body);
174+
fireEvent.mouseDown(document.body);
175175
jest.runAllTimers();
176176
});
177177
expect(onOpenChange).toHaveBeenCalledTimes(i + 1);

0 commit comments

Comments
 (0)