unovue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
5.27k stars 316 forks source link

Vee Validate + Shadcn Tabs - Validation Not Clearing After Input in Hidden Tab #801

Closed SAntoineS closed 1 month ago

SAntoineS commented 1 month ago

Description

I'm experiencing an issue where validation errors persist even after filling in the required fields, particularly when those fields are inside a hidden tab. I tried replicating the issue in a demo on Stackblitz, and there, when I switch tabs, it seems that the validation resets correctly.

For example:

Here’s what’s happening on my project:

Expected Behavior

Actual Behavior

Question

Environment

I would appreciate any guidance or advice on how to resolve this issue.

sadeghbarati commented 1 month ago

@SAntoineS Hi, please try to provide a better reproduction next time, cause your demo is so disordered

Check this Stackblitz

https://stackblitz.com/edit/qxp1zy?file=package.json,src%2FApp.vue