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';
4242
4343export 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
5354export const V_BindTargetScope = schemaForType < BindTargetScope > ( ) ( z . instanceof ( BindTargetScope ) ) ;
5455
You can’t perform that action at this time.
0 commit comments