8000 fix: modeController is undefined while call removeBehaviors on a destroyed graph instance by Yanyan-Wang · Pull Request #491 · antvis/Graphin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

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
@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
Development

Successfully merging this pull request may close these issues.

modeController is undefined ZoomCanvas中minZoom和maxZoom类型为undefined,导致TS检查报错 Context Menu side switching
2 participants
0