Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VNumberInput): fix behavior with float step #19657

Conversation

coderkatze
Copy link

Description

This change fixes #19494 by parsing the input value as a float for the model update.
It is needed to allow using the VNumberInput with float values and float steps.
It also fixes the behavior of the input when blurring / focussing. (the model-value beig set to the parseInt result)

Markup:

<template>
  <v-app>
    <v-container>
      <v-number-input step="0.1" />
    </v-container>
  </v-app>
</template>

<script>
  export default {
    name: 'Playground',
    setup () {
      return {
        //
      }
    },
  }
</script>

@yuwu9145
Copy link
Member

Thanks for your PR! The fix has been addressed in another large enhance refactoring PR #19605 aiming to avoid all native number input quirks.

@yuwu9145 yuwu9145 closed this Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants