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

Commit 82c831b

Browse files
committed
Get details from state
1 parent f1cbbbd commit 82c831b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ class DetailsDialogElement extends HTMLElement {
250250
}
251251

252252
attributeChangedCallback() {
253-
const details = this.parentElement
254-
if (!details) return
255253
const state = initialized.get(this)
256254
if (!state) return
255+
const {details} = state
256+
if (!details) return
257257

258258
updateIncludeFragmentEventListeners(details, this.src, this.preload)
259259
}

0 commit comments

Comments
 (0)