Added selector for input of type button (#836)

Co-authored-by: Iustinian Olaru <iou@ramboll.dk>
This commit is contained in:
Iustinian Olaru 2022-02-18 19:43:50 +01:00 committed by GitHub
parent a4f7680217
commit 0fd917119b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {