fixing the fix, item is a regular (not DOM-)object and not undefined

This commit is contained in:
ralf 2023-05-19 09:26:21 +02:00
parent 71278c8041
commit 8b22a258c6

View File

@ -869,7 +869,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
protected _createImage(item)
{
let image = item ? item.querySelector("et2-image") || item.querySelector("[slot='prefix']") : null;
let image = item?.querySelector ? item.querySelector("et2-image") || item.querySelector("[slot='prefix']") : null;
if(image)
{
image = image.clone();