Article | 70002264 |
Type | Bug |
Product | WebJS |
Version | 1001 |
Date Added | 10/3/2022 |
Fixed | 10.1002.0.3 (10/3/2022) |
Submitted by | Dariusz Johanik |
Summary
ScriptCommand.select not triggering callback if being canceled by user (when ESC button is pressed)
Solution
Fixed in version 1002.0.3
vdcanvas.scriptCommand.select(null, function (vdcanvas) { if (!vdcanvas.ActiveAction().IsCanceled()) { vdcanvas.scriptCommand.move(null, null, function (vdcanvas) { setTimeout(vdcanvas.redraw); alert("succeeded"); }); } else { alert("failed"); setTimeout(vdcanvas.redraw); } });