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

Commit 0eb4961

Browse files
committed
Fix preload src bug
currently both once listener will be triggered meaning if there are two include-fragment in the dialog both would be set with the dialog src once on click, once on mouseover
1 parent f3f0a59 commit 0eb4961

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)