Skip to content

Commit

Permalink
Added selector for input of type button (bigskysoftware#836)
Browse files Browse the repository at this point in the history
Co-authored-by: Iustinian Olaru <[email protected]>
  • Loading branch information
iustin94 and Iustinian Olaru authored Feb 18, 2022
1 parent a4f7680 commit 0fd9171
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,8 @@ return (function () {
return triggerSpecs;
} else if (matches(elt, 'form')) {
return [{trigger: 'submit'}];
} else if (matches(elt, 'input[type="button"]')){
return [{trigger: 'click'}];
} else if (matches(elt, INPUT_SELECTOR)) {
return [{trigger: 'change'}];
} else {
Expand Down

0 comments on commit 0fd9171

Please sign in to comment.