mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +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)
|
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)
|
if(image)
|
||||||
{
|
{
|
||||||
image = image.clone();
|
image = image.clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user