diff --git a/zul/src/main/resources/web/js/zul/mesh/ColumnMenuWidget.ts b/zul/src/main/resources/web/js/zul/mesh/ColumnMenuWidget.ts index 5ce0556dcb6..05c28358768 100644 --- a/zul/src/main/resources/web/js/zul/mesh/ColumnMenuWidget.ts +++ b/zul/src/main/resources/web/js/zul/mesh/ColumnMenuWidget.ts @@ -240,7 +240,9 @@ export abstract class ColumnMenuWidget extends zul.mesh.HeadWidget { override onChildAdded_(child: zul.mesh.HeaderWidget): void { super.onChildAdded_(child); this._syncColMenu(); - this.getMeshWidget()?._syncEmpty(); + let mesh = this.getMeshWidget(); + if (mesh && mesh._syncEmpty) + mesh._syncEmpty(); } /** @internal */ diff --git a/zul/src/main/resources/web/js/zul/mesh/HeaderWidget.ts b/zul/src/main/resources/web/js/zul/mesh/HeaderWidget.ts index dae207895c7..e7bf448036f 100644 --- a/zul/src/main/resources/web/js/zul/mesh/HeaderWidget.ts +++ b/zul/src/main/resources/web/js/zul/mesh/HeaderWidget.ts @@ -333,9 +333,9 @@ export abstract class HeaderWidget extends zul.LabelImageWidget