mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +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
|
||||
// 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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user