File tree 4 files changed +4
-1
lines changed
packages/bento-design-system/src
4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export function BaseSelect<A>(props: Props<A>) {
107
107
placeholder = { placeholder }
108
108
menuPortalTarget = { menuPortalTarget . current }
109
109
components = { selectComponents }
110
- openMenuOnFocus
110
+ openMenuOnFocus = { props . openMenuOnFocus ?? dropdownConfig . openMenuOnFocus }
111
111
styles = { selectComponents . styles < SelectOption < A > > ( ) }
112
112
validationState = { validationState }
113
113
isMulti = { isMulti }
Original file line number Diff line number Diff line change @@ -16,4 +16,5 @@ export type DropdownConfig = {
16
16
openIndicatorIconSize : IconProps [ "size" ] ;
17
17
chipColor : ChipProps [ "color" ] ;
18
18
chipSpacing : BentoSprinkles [ "gap" ] ;
19
+ openMenuOnFocus : boolean ;
19
20
} ;
Original file line number Diff line number Diff line change @@ -38,4 +38,5 @@ export type BaseSelectProps<A> = {
38
38
noOptionsMessage ?: LocalizedString ;
39
39
isReadOnly ?: boolean ;
40
40
searchable ?: boolean ;
41
+ openMenuOnFocus ?: boolean ;
41
42
} ;
Original file line number Diff line number Diff line change @@ -499,6 +499,7 @@ export const dropdown: DropdownConfig = {
499
499
openIndicatorIconSize : 24 ,
500
500
chipColor : "indigo" ,
501
501
chipSpacing : 4 ,
502
+ openMenuOnFocus : true ,
502
503
} ;
503
504
504
505
export const table : TableConfig = {
You can’t perform that action at this time.
0 commit comments