File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/components/Select/common Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ export const InternalSelect = ({
250
250
if ( e . key === "Enter" ) {
251
251
e . preventDefault ( ) ;
252
252
if ( highlighted ) {
253
- onSelect ( highlighted , "default" , e ) ;
253
+ onSelect ( highlighted , undefined , e ) ;
254
254
} else if ( visibleList . current . length === 0 && allowCreateOption ) {
255
255
onSelect ( search , "custom" , e ) ;
256
256
}
Original file line number Diff line number Diff line change 1
- import { HTMLAttributes , KeyboardEvent , ReactNode } from "react" ;
1
+ import { HTMLAttributes , ReactNode , SyntheticEvent } from "react" ;
2
2
import { HorizontalDirection , IconName } from "@/components" ;
3
3
import { PopoverProps } from "@radix-ui/react-popover" ;
4
4
@@ -77,7 +77,7 @@ interface InternalSelectProps
77
77
onSelect : (
78
78
value : string ,
79
79
type ?: SelectionType ,
80
- evt ?: KeyboardEvent < HTMLElement >
80
+ evt ?: SyntheticEvent < HTMLElement >
81
81
) => void ;
82
82
multiple ?: boolean ;
83
83
checkbox ?: boolean ;
You can’t perform that action at this time.
0 commit comments