You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be related to #2185 but the behavior is different so I'm making a new bug.
Versions
vee-validate: 3.0.1
vue: 2.6.10
Describe the bug
When ValidationProvider is the top level of a child component, aggressive mode behaves like lazy until the first blur, whether it's set via mode or defaulting.
Using the component with the slot works and validates, but only after the first blur.
<!-- this does not work "aggressively", and only validates after first blur -->
<form-rowlabel="Name"rules="required">
<inputid="nameInput"v-model.trim="name"class="form-control">
</form-row>
To reproduce
Steps to reproduce the behavior:
Make a component that has the ValidationProvider as the top element and a slot
Use the component, passing in a default slot
Observe that the default mode behaves like lazy for the first validation only
Expected behavior
Aggressive mode should always validate in real time, not just after first blur.
Desktop (please complete the following information):
OS: Mac OS
Browser: Firefox
Version 68.0.2
The text was updated successfully, but these errors were encountered:
OK, Good news. I found the issue and managed to fix it. It was due to vee-validate not being able to detect the correct input type. So it falls back to using change event for validation.
This was due to your input not having a type="text" attribute, I have added a small case for it.
While this looks close to #2229 it doesn't seem to fix it.
This may be related to #2185 but the behavior is different so I'm making a new bug.
Versions
Describe the bug
When ValidationProvider is the top level of a child component,
aggressive
mode behaves likelazy
until the first blur, whether it's set viamode
or defaulting.Given a component template like this:
Using the component with the slot works and validates, but only after the first blur.
To reproduce
Steps to reproduce the behavior:
ValidationProvider
as the top element and a slotlazy
for the first validation onlyExpected behavior
Aggressive mode should always validate in real time, not just after first blur.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: