Skip to content

How to preserve Pinia store value types when using Vuetify bound control? #2074

Closed Answered by Liquidream
Liquidream asked this question in Help and Questions
Discussion options

You must be logged in to vote

In case anyone else has a similar issue - this was solved by adding the .number modifier (https://vuejs.org/guide/essentials/forms.html#number) to the v-model, as so...

<v-col>
  <v-text-field label="Y-Pos" v-model.number="model.y" type="number"></v-text-field>
  <v-text-field label="Height" v-model.number="model.height" type="number"></v-text-field>
</v-col>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Liquidream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant