Skip to content

Commit

Permalink
fix: uneccessary prop wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Mar 2, 2025
1 parent 1de8da6 commit acbb754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/useDateTimeField/useDateTimeField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ export function useDateTimeField(_props: Reactivify<DateTimeFieldProps, 'schema'

const { element: inputEl } = useConstraintsValidator({
type: 'date',
required: () => toValue(props.required),
required: props.required,
value: field.fieldValue,
source: controlEl,
min: () => toValue(props.min),
max: () => toValue(props.max),
min: props.min,
max: props.max,
});

useInputValidity({ field, inputEl });
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/useSelect/useSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function useSelect<TOption, TValue = TOption>(_props: Reactivify<SelectPr

const { element: inputEl } = useConstraintsValidator({
type: 'select',
required: () => toValue(props.required),
required: props.required,
value: fieldValue as unknown as string,
source: triggerEl,
});
Expand Down

0 comments on commit acbb754

Please sign in to comment.