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(dia.ElementView): fix to support port id as numbers #2624

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

kumilingus
Copy link
Contributor

Description

It is currently possible to set the port ID to a number.

element.addPort({ port: 123 });

However, the user cannot connect to the port through the user interface. This is because internally we are looking for a port with an id as the string "123", which could not be found.

This PR ensures that the link connection works as expected and that the port ID stored in the link model is of the correct type.

typeof link.target().port === 'number'

@kumilingus kumilingus merged commit e842ea4 into clientIO:master Apr 23, 2024
3 checks passed
@kumilingus kumilingus deleted the port-id-number branch April 23, 2024 13:57
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.

2 participants