Skip to content

Commit 22e421d

Browse files
authored
chore: useId (#599)
1 parent 3aaa70c commit 22e421d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"test": "rc-test"
4444
},
4545
"dependencies": {
46-
"@rc-component/select": "~1.0.0",
46+
"@rc-component/select": "~1.0.7",
4747
"@rc-component/tree": "~1.0.0",
4848
"@rc-component/util": "^1.2.1",
4949
"classnames": "^2.3.1"

src/Cascader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {
66
} from '@rc-component/select';
77
import { BaseSelect } from '@rc-component/select';
88
import type { DisplayValueType, Placement } from '@rc-component/select/lib/BaseSelect';
9-
import useId from '@rc-component/select/lib/hooks/useId';
9+
import useId from '@rc-component/util/lib/hooks/useId';
1010
import useEvent from '@rc-component/util/lib/hooks/useEvent';
1111
import useMergedState from '@rc-component/util/lib/hooks/useMergedState';
1212
import * as React from 'react';

tests/__snapshots__/search.spec.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ exports[`Cascader.Search should correct render Cascader with same field name of
1515
>
1616
<input
1717
aria-autocomplete="list"
18-
aria-controls="rc_select_TEST_OR_SSR_list"
18+
aria-controls="test-id_list"
1919
aria-expanded="true"
2020
aria-haspopup="listbox"
21-
aria-owns="rc_select_TEST_OR_SSR_list"
21+
aria-owns="test-id_list"
2222
autocomplete="off"
2323
class="rc-cascader-selection-search-input"
24-
id="rc_select_TEST_OR_SSR"
24+
id="test-id"
2525
role="combobox"
2626
type="search"
2727
value="z"

0 commit comments

Comments
 (0)