Skip to content

Commit

Permalink
fix(DropdownMenu): add types to updateOnSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
davidacevedo committed Jun 8, 2022
1 parent 21dd296 commit e5cd524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/DropdownMenu.js
Expand Up @@ -18,6 +18,7 @@ const propTypes = {
persist: PropTypes.bool,
strategy: PropTypes.string,
container: targetPropType,
/** Update popper layout when a click event comes up. This leverages event bubbling. */
updateOnSelect: PropTypes.bool,
right: deprecated(PropTypes.bool, 'Please use "end" instead.'),
};
Expand Down
1 change: 1 addition & 0 deletions types/lib/DropdownMenu.d.ts
Expand Up @@ -13,6 +13,7 @@ export interface DropdownMenuProps extends React.HTMLAttributes<HTMLElement> {
persist?: boolean;
strategy?: string;
container?: string | HTMLElement | React.RefObject<HTMLElement>;
updateOnSelect?: boolean;
}

declare class DropdownMenu extends React.Component<DropdownMenuProps> {}
Expand Down

0 comments on commit e5cd524

Please sign in to comment.