Web: Components: ContextMenuButton: add dropDownClassName prop
This commit is contained in:
parent
7f77633a92
commit
b500f54d63
@ -166,6 +166,7 @@ class ContextMenuButton extends React.Component {
|
||||
title,
|
||||
zIndex,
|
||||
usePortal,
|
||||
dropDownClassName,
|
||||
} = this.props;
|
||||
|
||||
const { isOpen, displayType, offsetX, offsetY } = this.state;
|
||||
@ -197,6 +198,7 @@ class ContextMenuButton extends React.Component {
|
||||
/>
|
||||
{displayType === "dropdown" ? (
|
||||
<DropDown
|
||||
className={dropDownClassName}
|
||||
directionX={directionX}
|
||||
directionY={directionY}
|
||||
open={isOpen}
|
||||
@ -319,6 +321,7 @@ ContextMenuButton.propTypes = {
|
||||
displayType: PropTypes.string,
|
||||
isNew: PropTypes.bool,
|
||||
usePortal: PropTypes.bool,
|
||||
dropDownClassName: PropTypes.string,
|
||||
};
|
||||
|
||||
ContextMenuButton.defaultProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user