Skip to content

fix: correctly detect parent in SwimlaneMixin.dropTarget - #390

Merged
tbouffard merged 1 commit into
mainfrom
fix/SwimlaneMixin_getDropTarget
Apr 19, 2024
Merged

fix: correctly detect parent in SwimlaneMixin.dropTarget#390
tbouffard merged 1 commit into
mainfrom
fix/SwimlaneMixin_getDropTarget

Conversation

@tbouffard

@tbouffard tbouffard commented Apr 17, 2024

Copy link
Copy Markdown
Member

The target was not detected as a valid target so, the targeted swimlane was never highlighted while panning the cell over the potential target.

The problem was visible in the Swimlanes and Folding stories, the targeted swimlanes are now correctly highlighted.

The problem was introduced during the mxGraph migration, the parent variable scope change during the migration and the parent variable used to validate if the target was valid didn't refer to a Cell in maxGraph but to Window.parent.

Notes

The issue in the Folding story was visible in #385

An alternate fix was proposed in #88, see 8546ca9

Fix in the Swimlanes story

PR_390_fix_swimlanes_stroy_dropTarget

The target was not detected as a valid target so, the targeted swimlane was never highlighted while
panning the cell over the potential target.

The problem was visible in the Swimlanes and Folding stories, the targeted swimlanes are now
correctly highlighted.

The problem was introduced during the mxGraph migration, the parent variable scope change during the
migration and the parent variable used to validate if the target was valid didn't refer to a Cell in
maxGraph but to Window.parent.
@tbouffard tbouffard added the bug Something isn't working label Apr 17, 2024
@tbouffard
tbouffard marked this pull request as ready for review April 18, 2024 08:45
@tbouffard
tbouffard merged commit 286d835 into main Apr 19, 2024
@tbouffard
tbouffard deleted the fix/SwimlaneMixin_getDropTarget branch April 19, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant