-
Notifications
You must be signed in to change notification settings - Fork 378
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
Error string/exclamation mark not showing on validation fail #49
Comments
That seems strange. Which version of the lib are you usign? |
1.3.3. It is indeed strange. Shall I share my entire xml? Maybe it has something to do with the fact that I have 4 columns of On Sep 30, 2016 9:03 PM, "Andrea Baccega" [email protected] wrote:
|
It is probably due to your layout. Did you try to place it out the column Il 30 set 2016 6:32 PM, "Asim Shahzad" [email protected] ha
|
On Fri, Sep 30, 2016 at 9:51 PM, Andrea Baccega [email protected]
Regards, |
|
Can this be fixed? EDIT: A temporary workaround for anyone facing the issue. Modify your for loop for validation. Make it something like this. As soon as the problematic field has focus, the error shows up.
|
The same problem. +1 |
i have same problem should be |
Can you test It and submit a pull request?
…On Dec 12, 2016 3:04 AM, "diandian71" ***@***.***> wrote:
i have same problem
i use compile 'com.android.support:design:25.0.1'
i see code ,so i find DefaultEditTextValidator-->
@OverRide <https://github.com/Override>
public void showUIError() {
if (mValidator.hasErrorMessage()) {
try {
TextInputLayout parent = (TextInputLayout) editText.getParent();
parent.setErrorEnabled(true);
parent.setError(mValidator.getErrorMessage());
} catch (Throwable e) {
editText.setError(mValidator.getErrorMessage());
}
}
}
should be
TextInputLayout parent = (TextInputLayout) editText.
getParentForAccessibility();
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMPSzjTSht4Dyb0Rmh2RLUk3oVSoy2mks5rHKungaJpZM4KLBCy>
.
|
I have the FormEditText wrapped in the TextInputLayout class if that matters.
Whenever I test the validation, the error or the exclamation mark don't show. I have to manually focus the culprit field to get the error string shown.
This causes a lot of issues as the user doesn't know what the problem is.
Here's the xml:
The text was updated successfully, but these errors were encountered: