We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f5c03 commit 04a7c7fCopy full SHA for 04a7c7f
packages/vaadin-template-renderer/src/vaadin-template-renderer-templatizer.js
@@ -73,7 +73,12 @@ export class Templatizer extends PolymerElement {
73
}
74
75
__isTemplateInstanceConnected(instance) {
76
- return instance.children[0].isConnected;
+ // A workaround for the edge-case case when the template is empty
77
+ if (instance.children.length === 0) {
78
+ return false;
79
+ }
80
+
81
+ return instance.children[0].parentElement;
82
83
84
__createTemplateClass(properties) {
0 commit comments