Skip to content

Commit

Permalink
feat(ContextMenu): Pass the className and style props to the Cont…
Browse files Browse the repository at this point in the history
…extMenu component
  • Loading branch information
gaoli committed Aug 30, 2018
1 parent 1f33da8 commit 74a32ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ContextMenu/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { pick } from '@utils';
import Editor from '@antv/g6-editor';
import { CONTEXT_MENU_CONTAINER } from '@common/constants';
import BaseComponent from '@components/Base';
Expand Down Expand Up @@ -26,7 +27,7 @@ class ContextMenu extends BaseComponent {
const { children } = this.props;

return (
<div id={this.containerId} style={{ display: 'none' }}>
<div id={this.containerId} {...pick(this.props, ['style', 'className'])}>
{children}
</div>
);
Expand Down

0 comments on commit 74a32ef

Please sign in to comment.