rails--rails/activestorage/app/assets/javascripts
Sean Doyle e75b0094d0 ActiveStorage: Pass `useCapture` to UJS listener
Closes [@hotwired/turbo#243][].

Set the `useCapture` parameter of [addEventListener][] to `true` so that
cancelling the event occurs early enough in the process so that the
resulting upload is cancelled.

[@hotwired/turbo#243]: https://github.com/hotwired/turbo/issues/243#issuecomment-818792129
[addEventListener]: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#parameters

Co-authored-by: Javan Makhmali <javan@basecamp.com>
2021-04-13 11:56:01 -04:00
..
.gitattributes Add gitattributes for vendored and generated files [ci-skip] 2020-10-04 16:44:37 -05:00
activestorage.js ActiveStorage: Pass `useCapture` to UJS listener 2021-04-13 11:56:01 -04:00