We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a60696 + 63c2688 commit 1ecd7a8Copy full SHA for 1ecd7a8
src/drawflow.js
@@ -177,6 +177,7 @@ export default class Drawflow {
177
this.dispatch('click', e);
178
if(this.editor_mode === 'fixed') {
179
//return false;
180
+ e.preventDefault();
181
if(e.target.classList[0] === 'parent-drawflow' || e.target.classList[0] === 'drawflow') {
182
this.ele_selected = e.target.closest(".parent-drawflow");
183
} else {
@@ -325,6 +326,9 @@ export default class Drawflow {
325
326
this.pos_y = e.clientY;
327
this.pos_y_start = e.clientY;
328
}
329
+ if (this.drag || ['input','output','main-path'].includes(this.ele_selected.classList[0])) {
330
331
+ }
332
this.dispatch('clickEnd', e);
333
334
0 commit comments