We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d21eb9 commit 92dc7f5Copy full SHA for 92dc7f5
src/lib/input-change-events.js
@@ -30,15 +30,15 @@ const _ = {
30
},
31
32
setupInputHandlers($el) {
33
- if (!$el.is(":input")) {
+ if ($el.is(":input")) {
34
+ // The element itself is an input, se we simply register a
35
+ // handler fot it.
36
+ _.registerHandlersForElement.bind($el)();
37
+ } else {
38
// We've been given an element that is not a form input. We
39
// therefore assume that it's a container of form inputs and
40
// register handlers for its children.
41
$el.findInclusive(":input").each(_.registerHandlersForElement);
- } else {
- // The element itself is an input, se we simply register a
- // handler fot it.
- _.registerHandlersForElement.bind($el)();
42
}
43
44
0 commit comments