File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments