mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 02:18:28 +02:00
Fix js error happens when there's no label set on select options
This commit is contained in:
parent
1284ab534f
commit
b33f0fa8cf
@ -729,7 +729,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
|||||||
tag = <Et2Tag>document.createElement(this.tagTag);
|
tag = <Et2Tag>document.createElement(this.tagTag);
|
||||||
}
|
}
|
||||||
tag.value = item.value;
|
tag.value = item.value;
|
||||||
tag.textContent = item.getTextLabel().trim();
|
tag.textContent = item?.getTextLabel()?.trim();
|
||||||
tag.class = item.classList.value + " search_tag";
|
tag.class = item.classList.value + " search_tag";
|
||||||
tag.setAttribute("exportparts", "icon");
|
tag.setAttribute("exportparts", "icon");
|
||||||
if(this.size)
|
if(this.size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user