Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hoorayimhelping committed Feb 12, 2025
1 parent 4547713 commit 750b333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Select/common/InternalSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export const InternalSelect = ({
if (e.key === "Enter") {
e.preventDefault();
if (highlighted) {
onSelect(highlighted, "default", e);
onSelect(highlighted, undefined, e);
} else if (visibleList.current.length === 0 && allowCreateOption) {
onSelect(search, "custom", e);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Select/common/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HTMLAttributes, KeyboardEvent, ReactNode } from "react";
import { HTMLAttributes, ReactNode, SyntheticEvent } from "react";
import { HorizontalDirection, IconName } from "@/components";
import { PopoverProps } from "@radix-ui/react-popover";

Expand Down Expand Up @@ -77,7 +77,7 @@ interface InternalSelectProps
onSelect: (
value: string,
type?: SelectionType,
evt?: KeyboardEvent<HTMLElement>
evt?: SyntheticEvent<HTMLElement>
) => void;
multiple?: boolean;
checkbox?: boolean;
Expand Down

0 comments on commit 750b333

Please sign in to comment.