mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
fix TypeError: item.querySelector is not a function
This commit is contained in:
parent
00b48f3b04
commit
71278c8041
@ -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