Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disconnect loaded Frame Element while rendering
Closes [#453] --- While loading a matching `<turbo-frame>` element from a response body, the `FrameController` "activates" it by invoking `FrameElement.connectedCallback()` after importing it into the document. During that activation, several event listeners are attached, including some on the `document`. Unfortunately, that `FrameElement.connectedCallback()` invocation is never mirrored with a `FrameElement.disconnectedCallback()` invocation, so the attached listeners are never detached, causing an accumulation. This commit invokes the `disconnectedCallback()` after loaded element's contents are extracted into the browser's document. [#453]: #453
- Loading branch information