File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ import {
2929import { applyDropdownPositionRelativeToViewport , LogicalDOMRect } from './dropdown-position' ;
3030import { DropdownAlignment , DropdownProps , DropdownWidthConstraint } from './interfaces' ;
3131
32- interface InternalDropdownProps extends Omit < DropdownProps , 'minWidth' | 'maxWidth' > , InternalBaseComponentProps {
32+ export interface InternalDropdownProps
33+ extends Omit < DropdownProps , 'minWidth' | 'maxWidth' > ,
34+ InternalBaseComponentProps {
3335 onMouseDown ?: React . MouseEventHandler ;
3436 contentKey ?: string ;
3537 dropdownId ?: string ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useEffect, useRef } from 'react';
55
66import { useUniqueId } from '@cloudscape-design/component-toolkit/internal' ;
77
8+ import { InternalDropdownProps } from '../../dropdown/internal' ;
89import { ButtonTriggerProps } from '../../internal/components/button-trigger' ;
910import { DropdownStatusProps } from '../../internal/components/dropdown-status' ;
1011import { DropdownOption , OptionDefinition , OptionGroup } from '../../internal/components/option/interfaces' ;
@@ -173,12 +174,10 @@ export function useSelect({
173174 goHome : goHomeWithKeyboard ,
174175 } ) ;
175176
176- const getDropdownProps : ( ) => {
177- onFocus : NonCancelableEventHandler ;
178- onBlur : NonCancelableEventHandler ;
179- dropdownContentId ?: string ;
180- ariaRole ?: string ;
181- } = ( ) => ( {
177+ const getDropdownProps : ( ) => Pick <
178+ InternalDropdownProps ,
179+ 'onFocus' | 'onBlur' | 'dropdownContentId' | 'ariaRole'
180+ > = ( ) => ( {
182181 onFocus : handleFocus ,
183182 onBlur : handleBlur ,
184183 dropdownContentId : dialogId ,
You can’t perform that action at this time.
0 commit comments