-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
Describe the problem
While using Remote Function forms You can do this:
<input {...survey.fields.languages.as('checkbox', language)}>But you cannot do this:
<input {...survey.fields.languages.as('text', language)}>You must do this:
<input {...survey.fields.languages.as('text')} value={language}>But you loose TypeScript validation.
Describe the proposed solution
All .as('<type>', ...) should allow the second argument, not just on non-keyboard inputs like 'checkbox', 'radio', 'hidden' etc. Consistent interface good.
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels