Skip to content

Commit 892cde3

Browse files
committed
chore: clean toggle-group-item
1 parent 460361d commit 892cde3

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

packages/kit-headless/src/components/toggle-group/toggle-group-item.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,7 @@ export const HToggleGroupItem = component$<ToggleGroupItemProps>((props) => {
111111
if (!isNavigationKey(event.key)) return;
112112
event.preventDefault();
113113
});
114-
// const handleKeyDownSync$ = sync$((event: KeyboardEvent) => {
115-
// if (!['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp'].includes(event.key)) return;
116-
// console.log('sync');
117-
// event.preventDefault();
118-
// });
114+
119115
const handleKeyDown$ = $(async (event: KeyboardEvent) => {
120116
//grab items by rootId
121117
const items = baseContext.itemsRefs.value;

packages/kit-headless/src/components/toggle-group/toggle-group-root.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ type ToggleGroupNavigationProps = {
3535
* keyboard navigation will loop from last item to first, and vice versa.
3636
*/
3737
loop?: boolean;
38-
//TODO: props below
39-
// Additional props for div
40-
// [key: string]: any;
4138
};
4239

4340
export type ToggleGroupSingleProps = {

0 commit comments

Comments
 (0)