1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Enable useCapture for event listener to improve compatibility with React

This commit is contained in:
Jeff Way 2021-08-27 13:17:00 -07:00
parent 8d32979cd9
commit fa1630185b

View file

@ -413,7 +413,7 @@ module Capybara
this.removeEventListener('click', file_catcher);
e.preventDefault();
}
})
}, {capture: true})
JS
end
end