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
b-input shows validation error on focus instead of blur #3705
Comments
I find it annoying too, but there is a way to change this behavior. You can either: <b-input
:use-html5-validation="false"
required
/> |
@lucraraujo this doesn't work for me since I want the validations. |
Yep! You're right! I just realized this. The problem is here: buefy/src/utils/FormElementMixin.js Line 117 in deaa4a8
I'm trying to find if there are other side effects is I remove this line. |
It seems to have been added in v0.9.9: https://github.com/buefy/buefy/blob/v0.9.9/src/utils/FormElementMixin.js The commit tied to it was: cb0868b And I don't see how number validation and when the validation starts are related. Can you enlighten us @fabiofdsantos ? |
I think it was related to #3059 but maybe a bug has been introduced on the "fix". |
Overview of the problem
Buefy version: [0.9.19]
Vuejs version: [2.6.14]
OS/Browser: Chrome
Description
On focus of any input with "required" attribute, it immediately shows an error.
Even on the docs it happens: https://buefy.org/documentation/input#validation
On the field called "user handle".
Steps to reproduce
Create a
<b-input required />
and focus it.Expected behavior
The message is suppose to show on blur, not on focus as stated in the docs.
Actual behavior
https://jsfiddle.net/qfLtb70n/
The text was updated successfully, but these errors were encountered: