Skip to content

Commit 1332b13

Browse files
Revert default
1 parent cc56cf8 commit 1332b13

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/oc-client.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,20 +679,23 @@ export function createOc(oc) {
679679
class extends HTMLElement {
680680
#connected = false;
681681
#manageLifecycle = !DISABLE_LIFECYCLES;
682+
// biome-ignore lint/complexity/noUselessConstructor: <explanation>
682683
constructor() {
683684
super();
685+
}
686+
687+
connectedCallback() {
688+
this.#connected = true;
689+
684690
if (
685691
this.getAttribute("disable-lifecycle") == "true" ||
686692
this.getAttribute("disable-lifecycle") == ""
687693
) {
688-
this.#manageLifecycle = true;
689-
} else if (this.getAttribute("disable-lifecycle") == "false") {
690694
this.#manageLifecycle = false;
695+
} else if (this.getAttribute("disable-lifecycle") == "false") {
696+
this.#manageLifecycle = true;
691697
}
692-
}
693698

694-
connectedCallback() {
695-
this.#connected = true;
696699
if (this.#manageLifecycle) {
697700
oc.renderNestedComponent(this, () => {});
698701
}

0 commit comments

Comments
 (0)