fix: Fix bug when referencing HTMLElement in non-browser environments. (#9050)

This commit is contained in:
Aaron Dodson
2025-05-14 14:50:23 -07:00
committed by GitHub
parent cfa625af32
commit 4a2b743f10

View File

@@ -800,7 +800,9 @@ export class FieldDropdown extends Field<string> {
option[0] &&
typeof option[0] !== 'string' &&
!isImageProperties(option[0]) &&
!(option[0] instanceof HTMLElement)
!(
typeof HTMLElement !== 'undefined' && option[0] instanceof HTMLElement
)
) {
foundError = true;
console.error(