Skip to content

Commit 950c11b

Browse files
committed
fix: clearIcon add tabIndex
1 parent 12f3c87 commit 950c11b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/BaseInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const BaseInput = React.forwardRef<HolderRef, BaseInputProps>((props, ref) => {
8484
clearIcon = (
8585
<button
8686
type="button"
87+
tabIndex={-1}
8788
onClick={(event) => {
8889
handleReset?.(event);
8990
onClear?.();

src/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import clsx from 'classnames';
2-
import useMergedState from 'rc-util/lib/hooks/useMergedState';
3-
import omit from 'rc-util/lib/omit';
2+
import useMergedState from '@rc-component/util/lib/hooks/useMergedState';
3+
import omit from '@rc-component/util/lib/omit';
44
import React, {
55
forwardRef,
66
useEffect,

0 commit comments

Comments
 (0)