Skip to content

Commit

Permalink
Prevent target action from writing an element to o.input
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanja authored and piranha committed Jun 12, 2023
1 parent 1f9d885 commit 76ff93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twinspark.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
target: function(sel, o) {
try {
o.el = findTarget(o.el, sel);
return o.el;
return undefined; // do not affect o.input
} catch(e) {
return false; // stop executing actions pipeline
}
Expand Down

0 comments on commit 76ff93b

Please sign in to comment.