diff --git a/core/field_dropdown.ts b/core/field_dropdown.ts index b57668516..9c0d7f292 100644 --- a/core/field_dropdown.ts +++ b/core/field_dropdown.ts @@ -800,7 +800,9 @@ export class FieldDropdown extends Field { option[0] && typeof option[0] !== 'string' && !isImageProperties(option[0]) && - !(option[0] instanceof HTMLElement) + !( + typeof HTMLElement !== 'undefined' && option[0] instanceof HTMLElement + ) ) { foundError = true; console.error(