Skip to content

Commit 09f8527

Browse files
committed
Ensure we click <input type="submit"> elements
1 parent 243a778 commit 09f8527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dom_utils.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ DomUtils =
9595
#
9696
# The html5 input types that should use simulateSelect are:
9797
# ["date", "datetime", "datetime-local", "email", "month", "number", "password", "range", "search",
98-
# "submit", "tel", "text", "time", "url", "week"]
98+
# "tel", "text", "time", "url", "week"]
9999
# An unknown type will be treated the same as "text", in the same way that the browser does.
100100
#
101101
isSelectable: (element) ->
102-
unselectableTypes = ["button", "checkbox", "color", "file", "hidden", "image", "radio", "reset"]
102+
unselectableTypes = ["button", "checkbox", "color", "file", "hidden", "image", "radio", "reset", "submit"]
103103
(element.nodeName.toLowerCase() == "input" && unselectableTypes.indexOf(element.type) == -1) ||
104104
element.nodeName.toLowerCase() == "textarea"
105105

0 commit comments

Comments
 (0)