Web: Components: ContextMenuButton: add dropDownClassName prop

This commit is contained in:
Viktor Fomin 2022-06-21 21:57:44 +03:00
parent 7f77633a92
commit b500f54d63

View File

@ -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 = {