Skip to content

Commit 82b3120

Browse files
committed
cleanup
1 parent 368a677 commit 82b3120

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

packages/@react-aria/autocomplete/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
},
2424
"dependencies": {
2525
"@react-aria/combobox": "^3.10.5",
26-
"@react-aria/focus": "^3.18.3",
2726
"@react-aria/i18n": "^3.12.3",
2827
"@react-aria/listbox": "^3.13.5",
2928
"@react-aria/searchfield": "^3.7.10",

packages/@react-aria/menu/src/useMenuItem.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ export function useMenuItem<T>(props: AriaMenuItemProps, state: TreeState<T>, re
123123
let isDisabled = props.isDisabled ?? state.selectionManager.isDisabled(key);
124124
let isSelected = props.isSelected ?? state.selectionManager.isSelected(key);
125125
let data = menuData.get(state);
126-
127126
let item = state.collection.getItem(key);
128127
let onClose = props.onClose || data.onClose;
129128
let router = useRouter();
@@ -163,9 +162,6 @@ export function useMenuItem<T>(props: AriaMenuItemProps, state: TreeState<T>, re
163162
let keyboardId = useSlotId();
164163

165164
if (data.shouldUseVirtualFocus) {
166-
// TODO: finalize if every component that Autocomplete will accept as a filterable child would need to follow this same
167-
// logic when creating the id
168-
id = `${data.id}-option-${key}`;
169165
id = getItemId(state, key);
170166
}
171167

packages/@react-stately/autocomplete/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212

1313
export {useAutocompleteState} from './useAutocompleteState';
1414

15-
// TODO export the types
1615
export type {AutocompleteProps, AutocompleteStateOptions, AutocompleteState} from './useAutocompleteState';

packages/@react-stately/autocomplete/src/useAutocompleteState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export interface AutocompleteState {
1919
inputValue: string,
2020
/** Sets the value of the autocomplete input. */
2121
setInputValue(value: string): void,
22-
// TODO: debatable if this state hook needs to exist
2322
/** The id of the current aria-activedescendant of the autocomplete input. */
2423
focusedNodeId: string | null,
2524
/** Sets the id of the current aria-activedescendant of the autocomplete input. */

packages/react-aria-components/stories/Autocomplete.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export const AutocompleteExample = {
4242
render: ({onAction, isDisabled, isReadOnly}) => {
4343
return (
4444
<Autocomplete isReadOnly={isReadOnly} isDisabled={isDisabled} defaultInputValue="Ba" name="autocomplete-example" data-testid="autocomplete-example">
45-
{/* TODO: would the expectation be that a user would render a Group here? Or maybe we could add a wrapper element provided by Autocomplete automatically? */}
4645
<div>
4746
<Label style={{display: 'block'}}>Test</Label>
4847
<Input />

0 commit comments

Comments
 (0)