-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: Integration with ion-input and Vee-Validate no longer working OnInput
#22886
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
Comments
try this.... it works fine for me. as="ion-input" instead of making the ion-input as the child component of the v-field component
|
For the most part that does work, sorry I didn't try that. The only issue that I have now is that Vee-Validate doesn't validate until the second character is typed but that is the same in Should we consider that the fix? |
Thanks for the issue. Can you try the following dev build and let me know if it resolves the issue?
|
@liamdebeasi that fix is working for me. I switched back to using my original code with |
Dear @liamdebeasi, I was experiencing the same issue and tried your 5.6.0-dev.202102221703.5300dcc build and it indeed fixes the issue. |
Sorry, got tangled up in a few other things. I'll be opening a PR for this today. |
@liamdebeasi great! Much appreciated! |
Thanks for the issue. This has been resolved via #23114, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Starting in Ionic v5.5.3, VeeValidate no longer works with Ionic when using validation
OnInput
. I was following this post originally setting up Ionic and VeeValidate but then came across this issue in the latest Ionic version.Ionic version:
Current behavior:
Currently as you type in an
ion-input
component, the new value that VeeValidate receives is only set for a few milliseconds and then returns to the original or default value. The issue that this causes is if you want to show an error message in real-time (OnInput
), the error doesn't appear or disappear until the user clicks out of the text box (OnChange
) which can be misleading to them.Here is an example of the issue as I type in the Name input. The name has validation of being required and a minimum of 3 characters. The value doesn't update until I click out of the text box. You can also play with the email input which is required and must be a valid email format.
ionic_vee_validate_with_issue.mp4
Expected behavior:
It is expected that VeeValidate receives the new value as you type and it would stay set.
ionic_vee_validate_without_issue.mp4
Steps to reproduce:
You can reproduce the issue on this test repo - https://github.com/wsamoht/ionic-and-vee-validate and the test code is in Home.vue.
npm install
ionic serve
Related code:
Vee-Validate Resources:
v-model
v-model
withv-bind
conflict with each otherIonic info:
The text was updated successfully, but these errors were encountered: