Skip to content

Commit

Permalink
fix(linkTools.Vertices): fix to fire mouseleave event when redundancy…
Browse files Browse the repository at this point in the history
…Removal is disabled (#2481)
  • Loading branch information
kumilingus authored Jan 18, 2024
1 parent 5ec5d2f commit 6b1b54f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/joint-core/src/linkTools/Vertices.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ export const Vertices = ToolView.extend({
onHandleChanged: function(_handle, evt) {
const { options, relatedView: linkView } = this;
if (options.vertexAdding) this.updatePath();
if (!options.redundancyRemoval) return;
if (!options.redundancyRemoval) {
linkView.checkMouseleave(util.normalizeEvent(evt));
return;
}
var verticesRemoved = linkView.removeRedundantLinearVertices({ ui: true, tool: this.cid });
if (verticesRemoved) this.render();
this.blur();
Expand Down

0 comments on commit 6b1b54f

Please sign in to comment.