Workaround selector issue in JQuery

This commit is contained in:
BoykoAlex
2018-06-11 22:50:10 -04:00
parent 4ee6b19a4f
commit 9f3c37be64

View File

@@ -241,8 +241,10 @@ joint.shapes.flo.ElementView = joint.dia.ElementView.extend({
if ($(evt.target).attr('port') === 'input') {
sourceEnd = { x: x, y: y };
targetEnd = this.getLinkEnd(magnet, x, y, link, 'target');
targetEnd.selector = magnet.getAttribute('class').split(' ').map((cls: string) => '.' + cls).join(' ');
} else {
sourceEnd = this.getLinkEnd(magnet, x, y, link, 'source');
sourceEnd.selector = magnet.getAttribute('class').split(' ').map((cls: string) => '.' + cls).join(' ');
targetEnd = { x: x, y: y };
}