diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index 511b345051..b61fe3e002 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -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();