File tree 1 file changed +3
-14
lines changed
packages/react/src/components/Dropdown 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -501,13 +501,9 @@ const Dropdown = React.forwardRef(
501
501
502
502
// needs to be Capitalized for react to render it correctly
503
503
const ItemToElement = itemToElement ;
504
- const toggleButtonProps = useMemo (
505
- ( ) =>
506
- getToggleButtonProps ( {
507
- 'aria-label' : ariaLabel || deprecatedAriaLabel ,
508
- } ) ,
509
- [ getToggleButtonProps , ariaLabel , deprecatedAriaLabel , isOpen ]
510
- ) ;
504
+ const toggleButtonProps = getToggleButtonProps ( {
505
+ 'aria-label' : ariaLabel || deprecatedAriaLabel ,
506
+ } ) ;
511
507
512
508
const helper =
513
509
helperText && ! isFluid ? (
@@ -687,13 +683,6 @@ const Dropdown = React.forwardRef(
687
683
item,
688
684
index,
689
685
} ) ;
690
- if (
691
- item !== null &&
692
- typeof item === 'object' &&
693
- Object . prototype . hasOwnProperty . call ( item , 'id' )
694
- ) {
695
- itemProps . id = item [ 'id' ] ;
696
- }
697
686
const title =
698
687
isObject && 'text' in item && itemToElement
699
688
? item . text
You can’t perform that action at this time.
0 commit comments