You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getCollectionProps widens the type prop from 'checkbox' | 'radio' to 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week'. This causes a type error to be raised when the props are passed to a custom input component that requires the type prop to be narrowed to 'checkbox', 'radio', or a combination of the two.
Conform version
v1.0.6
Steps to Reproduce the Bug or Issue
Create a custom input component to encapsulate the styles of a checkbox/radio input. Narrow the type property for the component to 'checkbox' | 'radio'.
Describe the bug and the expected behavior
The
getCollectionProps
widens thetype
prop from'checkbox' | 'radio'
to'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week'
. This causes a type error to be raised when the props are passed to a custom input component that requires thetype
prop to be narrowed to'checkbox'
,'radio'
, or a combination of the two.Conform version
v1.0.6
Steps to Reproduce the Bug or Issue
Create a custom input component to encapsulate the styles of a checkbox/radio input. Narrow the
type
property for the component to'checkbox' | 'radio'
.Wire up the custom component using
getCollectionProps
.Observe the type error.
What browsers are you seeing the problem on?
No response
Screenshots or Videos
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: