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(VOtpInput): slice value with length on paste #20164

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

SonTT19
Copy link
Contributor

@SonTT19 SonTT19 commented Jul 15, 2024

Description

fixes #20158

Markup:

<template>
  <v-app>
    <v-container>
      // Copy and paste: 12345678
      <v-otp-input v-model="otp" :length="5" />
      Value: {{ otp }}
    </v-container>
  </v-app>
</template>

<script setup>
  import { ref } from 'vue'

  const otp = ref('')
</script>

@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VOtpInput VOtpInput labels Jul 16, 2024
@johnleider johnleider added this to the v3.6.x milestone Jul 16, 2024
@johnleider johnleider merged commit 0f8fd5d into master Jul 16, 2024
19 checks passed
@johnleider johnleider deleted the fix/20158-v-otp-input-slice-on-paste branch July 16, 2024 19:30
@johnleider johnleider changed the title fix(VOtpInput): slice value on paste fix(VOtpInput): slice value with length on paste Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VOtpInput VOtpInput T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.6.12] [VOtpInput] Value is over-setted on paste
2 participants