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
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<canvas padded size="70x45"> | ||
<content> | ||
<widget pos="4,4" size="62x37" type="*widget.Entry"> | ||
<rectangle fillColor="rgba(102,102,102,255)" pos="0,2" size="62x33"/> | ||
<rectangle fillColor="primary" pos="0,35" size="62x2"/> | ||
<widget pos="0,2" size="34x33" type="*widget.Scroll"> | ||
<widget size="34x33" type="*widget.entryContent"> | ||
<widget size="34x33" type="*widget.textProvider"> | ||
<text color="placeholder" pos="8,6" size="22x21"></text> | ||
</widget> | ||
<widget size="34x33" type="*widget.textProvider"> | ||
<text pos="8,6" size="22x21"></text> | ||
</widget> | ||
<rectangle fillColor="primary" pos="7,6" size="2x21"/> | ||
</widget> | ||
</widget> | ||
<widget pos="34,8" size="20x20" type="*widget.validationStatus"> | ||
</widget> | ||
</widget> | ||
</content> | ||
</canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<canvas padded size="70x45"> | ||
<content> | ||
<widget pos="4,4" size="62x37" type="*widget.Entry"> | ||
<rectangle fillColor="rgba(102,102,102,255)" pos="0,2" size="62x33"/> | ||
<rectangle fillColor="shadow" pos="0,35" size="62x2"/> | ||
<widget pos="0,2" size="34x33" type="*widget.Scroll"> | ||
<widget size="34x33" type="*widget.entryContent"> | ||
<widget size="34x33" type="*widget.textProvider"> | ||
<text color="placeholder" pos="8,6" size="22x21"></text> | ||
</widget> | ||
<widget size="34x33" type="*widget.textProvider"> | ||
<text pos="8,6" size="22x21"></text> | ||
</widget> | ||
</widget> | ||
</widget> | ||
<widget pos="34,8" size="20x20" type="*widget.validationStatus"> | ||
</widget> | ||
</widget> | ||
</content> | ||
</canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<canvas padded size="70x45"> | ||
<content> | ||
<widget pos="4,4" size="62x37" type="*widget.Entry"> | ||
<rectangle fillColor="rgba(102,102,102,255)" pos="0,2" size="62x33"/> | ||
<rectangle fillColor="error" pos="0,35" size="62x2"/> | ||
<widget pos="0,2" size="34x33" type="*widget.Scroll"> | ||
<widget size="34x33" type="*widget.entryContent"> | ||
<widget size="34x33" type="*widget.textProvider"> | ||
<text color="placeholder" pos="8,6" size="22x21"></text> | ||
</widget> | ||
<widget size="34x33" type="*widget.textProvider"> | ||
<text pos="8,6" size="22x21"></text> | ||
</widget> | ||
</widget> | ||
</widget> | ||
<widget pos="34,8" size="20x20" type="*widget.validationStatus"> | ||
<image rsc="errorIcon" size="iconInlineSize" themed="error"/> | ||
</widget> | ||
</widget> | ||
</content> | ||
</canvas> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-890 Bytes
(88%)
widget/testdata/form/validation_entry_first_type_invalid.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what you mean here, that is already the entry behavior.
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.