Skip to content

Commit c732b6f

Browse files
committed
fix #603
1 parent 699cea5 commit c732b6f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/core/src/config/validators/Validators.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ import { z } from 'zod';
4242

4343
export const V_FilePath = schemaForType<string>()(z.string());
4444

45-
export const V_RenderChildType = schemaForType<RenderChildType>()(z.nativeEnum(RenderChildType));
45+
export const V_RenderChildType = schemaForType<RenderChildType>()(z.enum(RenderChildType));
4646

47-
export const V_FieldType = schemaForType<FieldType>()(z.nativeEnum(FieldType));
47+
export const V_FieldType = schemaForType<FieldType>()(z.enum(FieldType));
4848

49-
export const V_InputFieldType = schemaForType<InputFieldType>()(z.nativeEnum(InputFieldType));
49+
export const V_InputFieldType = schemaForType<InputFieldType>()(z.enum(InputFieldType));
5050

51-
export const V_HTMLElement = schemaForType<HTMLElement>()(z.instanceof(HTMLElement));
51+
// This is temporarily changed to `z.any()` from `z.instanceof(HTMLElement)`, because the latter does not work in popout windows or PDF exports.
52+
export const V_HTMLElement = schemaForType<HTMLElement>()(z.any());
5253

5354
export const V_BindTargetScope = schemaForType<BindTargetScope>()(z.instanceof(BindTargetScope));
5455

0 commit comments

Comments
 (0)