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

The Select component in GraphNode cannot be left clicked to expand dropdown options #62

Closed
distance321 opened this issue Jul 3, 2024 · 2 comments

Comments

@distance321
Copy link

distance321 commented Jul 3, 2024

const components: NodeSpecification[] = [
  {
    type: 'decisionNode',
    displayName: 'Decision',
    shortDescription: 'Execute decisions',
    icon: <ApartmentOutlined />,
    generateNode: () => ({ name: 'myDecision' }),
    renderNode: ({ specification, id, selected, data }) => (
      <GraphNode id={id} specification={specification} name={data.name} isSelected={selected}>
        <Select placeholder='Select decision from list' />
      </GraphNode>
    ),
  },
];

Can I only right-click to expand? Is it a conflict with some incidents in GraphNode?

@majest
Copy link

majest commented Jul 9, 2024

Add className="nodrag nopan" to the Select component. This is referenced in xyflow/xyflow#2936

@distance321
Copy link
Author

Thank you very much

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

No branches or pull requests

2 participants