Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modeController is undefined while call removeBehaviors on a destroyed graph instance #491

Merged
merged 6 commits into from
Jun 19, 2023

Conversation

Yanyan-Wang
Copy link
Contributor

Copy link
Member

@pomelo-nwu pomelo-nwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -34,7 +35,7 @@ interface State {
let containerRef: HTMLDivElement | null;

const ContextMenu: React.FunctionComponent<ContextMenuProps> & { Menu: typeof Menu } = props => {
const { children, bindType = 'node', style } = props;
const { children, bindType = 'node', autoAdjust = true, style } = props;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined 和 false 都会被设置为 true

graphin/src/components/ContextMenu 也需要修改下

@pomelo-nwu pomelo-nwu merged commit c59f295 into master Jun 19, 2023
1 check passed
@pomelo-nwu pomelo-nwu deleted the bugfix-0615 branch June 19, 2023 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants