Skip to content
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

Fix Entry with NotEmpty Validator and Form Hints #2245

Merged
merged 3 commits into from May 24, 2021

Conversation

fpabl0
Copy link
Member

@fpabl0 fpabl0 commented May 15, 2021

Description:

Fixes #2179. And also a previous bug with the form hints:

before:
before

after this PR:
after

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

focused bool
text *textProvider
placeholder *textProvider
content *entryContent
scroll *widget.Scroll

// useful for Form validation (as the error text should only be shown when
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a change in behaviour - before now we would show the details of an error if there was any.
We hid the error status if the user had not yet edited the field.

Is this the desired change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now we would show the details of an error if there was any.

Not sure what you mean here, that is already the entry behavior.

We hid the error status if the user had not yet edited the field.

The only behavior change is that now Entry is going to show the error status (if there is any error) after the user has visited the input by the first time. In that way we can ensure that "not empty" validators are shown as soon as the user focused the input and passed it without solving the error.

Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much. Tapping through this works nicely.

@fpabl0 fpabl0 merged commit 7939240 into fyne-io:develop May 24, 2021
@fpabl0 fpabl0 deleted the fix/2179 branch May 24, 2021 18:23
@andydotxyz
Copy link
Member

Merged into release/v2.0.x as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants