From 4a2b743f10f1b1f628bfba12d5865a1201166e92 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 14 May 2025 14:50:23 -0700 Subject: [PATCH] fix: Fix bug when referencing HTMLElement in non-browser environments. (#9050) --- core/field_dropdown.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(