Skip to content

Commit

Permalink
Update type.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
RossLote authored Apr 8, 2019
1 parent ae97c7c commit 1bf7874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/driver/src/cy/commands/actions/type.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ module.exports = (Commands, Cypress, cy, state, config) ->
form.find("input, button").filter (__, el) ->
$el = $dom.wrap(el)
($dom.isSelector($el, "input") and $dom.isType($el, "submit")) or
($dom.isSelector($el, "button") and not $dom.isType($el, "button"))
($dom.isSelector($el, "button") and not ($dom.isType($el, "button") or $dom.isType($el, "reset")))

type = ->
simulateSubmitHandler = ->
Expand Down

0 comments on commit 1bf7874

Please sign in to comment.