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

resetValidation() #17367

Closed
TokyConstellation opened this issue Jul 11, 2024 · 2 comments
Closed

resetValidation() #17367

TokyConstellation opened this issue Jul 11, 2024 · 2 comments

Comments

@TokyConstellation
Copy link

Description

validation error display immediately after reset string input and submitting, i use the resetValidation() but nothing work ,
then trying async but nothing . I create another method event (onclick) to put resetValidation and it work but i dont need that, just put inside submit method.

const formData = ref({
name: '',
email: ''
});
const formRef = ref(null)

const submitForm = () => {
  formRef.value.validate().then(success => {
    if (success) {
      alert('test')
      formData.value.name = ''
      formData.value.email = ''

      formRef.value.resetValidation()
    }
  });
};

Documentation Section URL

https://quasar.dev/vue-components/input#internal-validation

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

@stefanvanherwijnen
Copy link
Contributor

I can´t seem to reproduce this at all, i.e. it seems to work just fine:
https://codepen.io/stefanvh/pen/RwzZzdr

@yusufkandemir
Copy link
Member

It's hard to understand what the problem is about. This doesn't look like a documentation report either. So, I am closing this issue. If you think this is a bug, open an issue using the bug template and make sure to include a reproduction.

@yusufkandemir yusufkandemir closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants