Skip to content
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

The issue is that formData is refreshed only after the input type has changes which means it might receive an incorrect default value type. A solution is to make the default value a computed which makes it always aligns with the selected type. Here's one way of fixing it.

\n

This isn't really an issue with Vueform so I'm moving this to discussions.

","upvoteCount":1,"url":"https://github.com/vueform/vueform/discussions/490#discussioncomment-14728210"}}}
Discussion options

You must be logged in to vote

The issue is that formData is refreshed only after the input type has changes which means it might receive an incorrect default value type. A solution is to make the default value a computed which makes it always aligns with the selected type. Here's one way of fixing it.

This isn't really an issue with Vueform so I'm moving this to discussions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@orientalperil
Comment options

Answer selected by orientalperil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #461 on October 20, 2025 10:35.