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(VFileInput): emit null after VForm reset() #20207

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

kingyyy
Copy link
Contributor

@kingyyy kingyyy commented Jul 21, 2024

fixes #20101

reproduce example

<template>
  <v-app>
    <v-container>
      <v-form ref="form">
        <v-file-input v-model="files" />
      </v-form>
      <v-btn @click="resetForm">reset form</v-btn>
    </v-container>
  </v-app>
</template>

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

  const files = ref()
  const form = ref()

  const resetForm = () => form.value.reset()
</script>

@MajesticPotatoe MajesticPotatoe added T: bug Functionality that does not work as intended/expected C: VFileInput labels Aug 1, 2024
@KaelWD KaelWD added this to the v3.6.x milestone Aug 13, 2024
@KaelWD KaelWD merged commit 6337f52 into vuetifyjs:master Aug 13, 2024
10 checks passed
@KaelWD KaelWD changed the title fix(VFileInput): trying to read index 0 of null after VForm reset() fix(VFileInput): emit null after VForm reset() Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VFileInput 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.11] Error when using VForm .reset() function with VFileInput
3 participants