Skip to content

Commit

Permalink
update desc
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul committed May 17, 2023
1 parent db72aa8 commit c02ceb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react-core/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export interface DropdownProps extends MenuProps, OUIAProps {
children?: React.ReactNode;
/** Classes applied to root element of dropdown. */
className?: string;
/** Select toggle. May be a direct ReactNode combined with the toggleRef property, or a renderer for a custom dropdown toggle which forwards a ref to the toggle. */
/** Dropdown toggle. The toggle should either be a renderer function which forwards the given toggle ref, or a direct ReactNode that should be passed along with the toggleRef property. */
toggle: React.ReactNode | ((toggleRef: React.RefObject<any>) => React.ReactNode);
/** Ref of the dropdown toggle ReactNode. */
/** Ref of the dropdown toggle. This property should be passed when toggle is assigned a node, to enable built in basic interaction handling. */
toggleRef?: React.RefObject<HTMLButtonElement>;
/** Flag to indicate if menu is opened.*/
isOpen?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export interface SelectProps extends MenuProps, OUIAProps {
isOpen?: boolean;
/** Single itemId for single select menus, or array of itemIds for multi select. You can also specify isSelected on the SelectOption. */
selected?: any | any[];
/** Select toggle. May be a direct ReactNode combined with the toggleRef property, or a renderer for a custom select toggle which forwards a ref to the toggle. */
/** Select toggle. The toggle should either be a renderer function which forwards the given toggle ref, or a direct ReactNode that should be passed along with the toggleRef property. */
toggle: React.ReactNode | ((toggleRef: React.RefObject<any>) => React.ReactNode);
/** Ref of the select toggle ReactNode. */
/** Ref of the select toggle. This property should be passed when toggle is assigned a node, to enable built in basic interaction handling. */
toggleRef?: React.RefObject<HTMLButtonElement>;
/** Flag indicating the toggle should be focused after a selection. If this use case is too restrictive, the optional toggleRef property with a node toggle may be used to control focus. */
shouldFocusToggleOnSelect?: boolean;
Expand Down

0 comments on commit c02ceb3

Please sign in to comment.