File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/core/src/config/validators Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,14 @@ import { z } from 'zod';
42
42
43
43
export const V_FilePath = schemaForType < string > ( ) ( z . string ( ) ) ;
44
44
45
- export const V_RenderChildType = schemaForType < RenderChildType > ( ) ( z . nativeEnum ( RenderChildType ) ) ;
45
+ export const V_RenderChildType = schemaForType < RenderChildType > ( ) ( z . enum ( RenderChildType ) ) ;
46
46
47
- export const V_FieldType = schemaForType < FieldType > ( ) ( z . nativeEnum ( FieldType ) ) ;
47
+ export const V_FieldType = schemaForType < FieldType > ( ) ( z . enum ( FieldType ) ) ;
48
48
49
- export const V_InputFieldType = schemaForType < InputFieldType > ( ) ( z . nativeEnum ( InputFieldType ) ) ;
49
+ export const V_InputFieldType = schemaForType < InputFieldType > ( ) ( z . enum ( InputFieldType ) ) ;
50
50
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 ( ) ) ;
52
53
53
54
export const V_BindTargetScope = schemaForType < BindTargetScope > ( ) ( z . instanceof ( BindTargetScope ) ) ;
54
55
You can’t perform that action at this time.
0 commit comments