Skip to content

Commit 7d2f677

Browse files
authored
refactor: delete unused internal utils (#18723)
1 parent 8453cd8 commit 7d2f677

File tree

7 files changed

+1
-294
lines changed

7 files changed

+1
-294
lines changed

packages/react/src/components/Search/Search.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import React, {
1919
type FunctionComponent,
2020
type MouseEvent,
2121
} from 'react';
22-
import { focus } from '../../internal/focus';
2322
import { keys, match } from '../../internal/keyboard';
2423
import { useId } from '../../internal/useId';
2524
import { usePrefix } from '../../internal/usePrefix';
@@ -193,7 +192,7 @@ const Search = React.forwardRef<HTMLInputElement, SearchProps>(function Search(
193192
onChange(clearedEvt);
194193
onClear();
195194
setHasContent(false);
196-
focus(inputRef);
195+
inputRef.current?.focus();
197196
}
198197

199198
function handleChange(event) {

packages/react/src/internal/ComponentToggle.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/react/src/internal/FeatureFlags.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

packages/react/src/internal/InnerClickListener.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

packages/react/src/internal/__tests__/InnerClickListener-test.js

Lines changed: 0 additions & 117 deletions
This file was deleted.

packages/react/src/internal/__tests__/__snapshots__/InnerClickListener-test.js.snap

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/react/src/internal/focus/index.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)