question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't validate 'confirm' on the fly

See original GitHub issue

Versions:

  • VueJs: 2.0.1
  • Vee-Validate: 2.0.0-beta.15

Description:

I’m using simples password confirmation validation and it works. However, it doesn’t work on the fly while users are typing. The first input, the real password, shows the error while typing. The second input, the confirmation password, when type the exact the same as the real password, the error doesn’t go away. However, if I hit submit and force the validation, yes it works.

So, I’m wondering how I would validate it on the fly while type, same behaviour as here http://vee-validate.logaretm.com/rules#rule-confirmed

My code is very simples, something like this

<input v-validate data-vv-rules="required|confirmed:password_confirmation" name="password" type="password" class="form-control"> <input name="password_confirmation" type="password" class="form-control">

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tiagomatoswebcommented, Nov 30, 2016

Cool, I understood! For me, in this case, not a big deal to change to v-show. Actually, v-show I think is more correct since there are two containers like tabs that users can navigate.

Tks a lot!

0reactions
logaretmcommented, Nov 30, 2016

Oh, I see. It is a duplicate of #119

It happens because the additional listener can’t find the target field, because v-if doesn’t include the hidden part in the DOM, unlike v-show which only sets the display style to none but the hidden part is still in the DOM thus it can attach the additional listener.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Confirm password validation in Angular 6 - Stack Overflow
I want to perform password and confirm password validations using material components only,and an error message below the confirm password field ...
Read more >
Validating Input | Web Accessibility Initiative (WAI) - W3C
Require user confirmation; Provide undo functionality. Custom validation needs to notify users in an accessible way as described in the User Notifications ...
Read more >
Travel information FAQs − Customer service - American Airlines
Travel information FAQs · Admirals Club · Check-in and arrival · BeNotified and other notifications · Security and collecting information · Flight status...
Read more >
More on data validation - Microsoft Support
For an introduction to data validation, and how to validate a cell or a range, ... and go to Data > Data Tools...
Read more >
Can't verify phone number - Android - Google Duo Help
Go to a website and see if it loads. Step 3: Check that you can get SMS texts. Check your settings: Cell signal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found