1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/app
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
..
assets/javascripts ActiveStorage: Pass useCapture to UJS listener 2021-04-13 11:56:01 -04:00
controllers Add frozen_string_literal pragma 2021-03-27 08:07:47 -04:00
javascript/activestorage ActiveStorage: Pass useCapture to UJS listener 2021-04-13 11:56:01 -04:00
jobs/active_storage Discard ActiveStorage::AnalyzeJobs on ActiveRecord::RecordNotFound 2019-09-28 10:28:21 -04:00
models/active_storage Active Storage: upgrade to mini_mime 1.1.0 2021-04-04 22:44:02 -04:00