Skip to content

Commit 750b333

Browse files
review feedback
1 parent 4547713 commit 750b333

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Select/common/InternalSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export const InternalSelect = ({
250250
if (e.key === "Enter") {
251251
e.preventDefault();
252252
if (highlighted) {
253-
onSelect(highlighted, "default", e);
253+
onSelect(highlighted, undefined, e);
254254
} else if (visibleList.current.length === 0 && allowCreateOption) {
255255
onSelect(search, "custom", e);
256256
}

src/components/Select/common/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HTMLAttributes, KeyboardEvent, ReactNode } from "react";
1+
import { HTMLAttributes, ReactNode, SyntheticEvent } from "react";
22
import { HorizontalDirection, IconName } from "@/components";
33
import { PopoverProps } from "@radix-ui/react-popover";
44

@@ -77,7 +77,7 @@ interface InternalSelectProps
7777
onSelect: (
7878
value: string,
7979
type?: SelectionType,
80-
evt?: KeyboardEvent<HTMLElement>
80+
evt?: SyntheticEvent<HTMLElement>
8181
) => void;
8282
multiple?: boolean;
8383
checkbox?: boolean;

0 commit comments

Comments
 (0)