Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frames: Ignore already cancelled
submit
events
Closes [#243][] In tandem with [rails/rails#41960][] (which shipped as part of `7.0.0.alpha2`), this commit modifies the `FormInterceptor` to ignore `submit` events that have been cancelled. Although it doesn't test the integration directly, the cancellation of the `submit` event is what powers the ActiveStorage.js direct upload asynchrony. Following a direct upload, ActiveStorage dispatches a synthetic `submit` event, which the `FormInterceptor` will then respond to. [#243]: #243 [rails/rails#41960]: rails/rails#41960
- Loading branch information