mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
Added selector for input of type button (#836)
Co-authored-by: Iustinian Olaru <iou@ramboll.dk>
This commit is contained in:
parent
a4f7680217
commit
0fd917119b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user