Skip to content

Commit 910caa7

Browse files
Merge pull request #7 from functionalland/feature/types
Fix bug with components that don't have an initial callback function
2 parents ffa3dc3 + 24f233f commit 910caa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ export const useTemplate = <
792792
configurable: true,
793793
enumerable: true,
794794
value(this: E) {
795-
return maybeCall(() => _connectedCallback.call(this))
795+
return maybeCall(() => _connectedCallback && _connectedCallback.call(this))
796796
.then(() => maybeCall<HTMLTemplateElement>(f))
797797
.then((template) => {
798798
if (!template) return;

0 commit comments

Comments
 (0)