Skip to content

Commit

Permalink
Merge pull request #2495 from trappar/fix/attach-file-capture-element…
Browse files Browse the repository at this point in the history
…-script

Fix incompatibility with React 17 when using attach_file - use event capturing
  • Loading branch information
twalpole authored Aug 30, 2021
2 parents 8d32979 + fa16301 commit 0468de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/node/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def _check_with_label(selector, checked, locator,
this.removeEventListener('click', file_catcher);
e.preventDefault();
}
})
}, {capture: true})
JS
end
end
Expand Down

0 comments on commit 0468de5

Please sign in to comment.