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

Do not update context pad visibility on element.marker.update if element is not target #912

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

philippfromme
Copy link
Contributor

@philippfromme philippfromme commented Jun 3, 2024

I investigated https://camunda-modeling.sentry.io/share/issue/d4edab8eb6044c74b7c933158b06a69a/ which happens when reacting to element.marker.update which calls canvas.hasMarker for each of the current targets. In some cases that I couldn't reproduce it seems like at least one of the targets has been deleted at the time of calling canvas.hasMarker which leads to a A DOM element reference is required since there is no graphical element anymore. While I couldn't reproduce the issue I changed the implementation so context pad visibility is updated on element.marker.update only if the element is a target. This might or might not fix the issue. We'll have to keep an eye on the Sentry issue.

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

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

Looks good. 👍 for keeping the code base consistent.

@marstamm marstamm merged commit d0810af into develop Jun 6, 2024
11 of 12 checks passed
@marstamm marstamm deleted the context-pad-visibility branch June 6, 2024 11:13
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants