diff --git a/package.json b/package.json index d7bc5f57..25226714 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rc-component/tree-select", - "version": "1.11.0", + "version": "1.12.0", "description": "tree-select ui component for react", "keywords": [ "react", @@ -43,7 +43,7 @@ "*": "prettier --write --ignore-unknown" }, "dependencies": { - "@rc-component/select": "~1.8.0", + "@rc-component/select": "~1.9.0", "@rc-component/tree": "~1.3.2", "@rc-component/util": "^1.11.1", "clsx": "^2.1.1" diff --git a/tests/Select.checkable.spec.tsx b/tests/Select.checkable.spec.tsx index 181c200a..2e5a427c 100644 --- a/tests/Select.checkable.spec.tsx +++ b/tests/Select.checkable.spec.tsx @@ -242,9 +242,9 @@ describe('TreeSelect.checkable', () => { selectNode(0); search(container, 'foo'); - // Clear all using mouseDown (same as wrapper.clearAll()) + // Clear all using click (same as wrapper.clearAll()) const clearButton = container.querySelector('.rc-tree-select-clear')!; - fireEvent.mouseDown(clearButton); + fireEvent.click(clearButton); // Check that no items are selected expect(container.querySelectorAll('.rc-tree-select-selection-item')).toHaveLength(0); diff --git a/tests/__snapshots__/Select.checkable.spec.tsx.snap b/tests/__snapshots__/Select.checkable.spec.tsx.snap index e65699e8..0b789c0c 100644 --- a/tests/__snapshots__/Select.checkable.spec.tsx.snap +++ b/tests/__snapshots__/Select.checkable.spec.tsx.snap @@ -288,7 +288,6 @@ exports[`TreeSelect.checkable uncheck remove by selector not treeCheckStrictly 2 >