Skip to content

Commit c7bb446

Browse files
authored
fixes dialog delete observer variable names (#104)
1 parent d63e820 commit c7bb446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dialog/dialog.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const dialogDeleteObserver = new MutationObserver((mutations, observer) => {
3434
mutations.forEach(mutation => {
3535
mutation.removedNodes.forEach(removedNode => {
3636
if (removedNode.nodeName === 'DIALOG') {
37-
dialog.removeEventListener('click', lightDismiss)
38-
dialog.removeEventListener('close', dialogClose)
37+
removedNode.removeEventListener('click', lightDismiss)
38+
removedNode.removeEventListener('close', dialogClose)
3939
removedNode.dispatchEvent(dialogRemovedEvent)
4040
}
4141
})

0 commit comments

Comments
 (0)