mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 19:30:55 +01:00
fix TypeError: item.querySelector is not a function
This commit is contained in:
parent
ee14d1d39f
commit
828d8d8e19
@ -869,7 +869,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
||||
|
||||
protected _createImage(item)
|
||||
{
|
||||
let image = item.querySelector("et2-image") || item.querySelector("[slot='prefix']");
|
||||
let image = item ? item.querySelector("et2-image") || item.querySelector("[slot='prefix']") : null;
|
||||
if(image)
|
||||
{
|
||||
image = image.clone();
|
||||
|
Loading…
Reference in New Issue
Block a user