Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 21dcadd

Browse files
authored
Merge pull request #58 from github/preload
Fix preload + src bug with include-fragment
2 parents f3f0a59 + 0eb4961 commit 21dcadd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ function loadIncludeFragment(event: Event) {
152152
if (details.hasAttribute('open')) autofocus(dialog)
153153
})
154154
loader.setAttribute('src', src)
155+
removeIncludeFragmentEventListeners(details)
155156
}
156157

157158
function updateIncludeFragmentEventListeners(details: Element, src: string | null, preload: boolean) {

0 commit comments

Comments
 (0)