mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 01:59:39 +01:00
Stop webcomponent labels disappearing
This commit is contained in:
parent
0141cba334
commit
c3a8d40914
@ -842,7 +842,7 @@ const Et2WidgetMixin = <T extends Constructor>(superClass : T) =>
|
|||||||
|
|
||||||
// An empty text node causes problems with legacy widget children
|
// An empty text node causes problems with legacy widget children
|
||||||
// It throws off their insertion indexing, making them get added in the wrong place
|
// It throws off their insertion indexing, making them get added in the wrong place
|
||||||
if(this.childNodes[0]?.nodeType == this.TEXT_NODE)
|
if(this.childNodes[0]?.nodeType == this.TEXT_NODE && this.childNodes[0].textContent == "")
|
||||||
{
|
{
|
||||||
this.removeChild(this.childNodes[0]);
|
this.removeChild(this.childNodes[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user