Skip to content

Commit b754e9f

Browse files
im3dabasiaim3dabasiamirkat-hamano
authored
Handle label fallback for dropdownMenu (#70951)
* fix: Show correct label when prop has label key in it * fix: Omit label prop in dropdownprops --------- Co-authored-by: im3dabasia <[email protected]> Co-authored-by: mirka <[email protected]> Co-authored-by: t-hamano <[email protected]>
1 parent b41c908 commit b754e9f

File tree

1 file changed

+4
-1
lines changed
  • packages/components/src/tools-panel

1 file changed

+4
-1
lines changed

packages/components/src/tools-panel/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ export type ToolsPanelHeaderProps = {
7777
/**
7878
* The dropdown menu props to configure the panel's `DropdownMenu`.
7979
*/
80-
dropdownMenuProps?: React.ComponentProps< typeof DropdownMenu >;
80+
dropdownMenuProps?: Omit<
81+
React.ComponentProps< typeof DropdownMenu >,
82+
'label'
83+
>;
8184
/**
8285
* The heading level of the panel's header.
8386
*

0 commit comments

Comments
 (0)