aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Select.java
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2011-09-05 13:16:06 +0000
committerHenri Sara <henri.sara@itmill.com>2011-09-05 13:16:06 +0000
commit175c380a0471bf916e683e43f4a9f561c730e7b1 (patch)
treea3901629d4f5b307f5ae6d7e3cfcced41e38bc24 /src/com/vaadin/ui/Select.java
parent97b7f1244d75e42c14ac034de6712a4d42de3c22 (diff)
downloadvaadin-framework-175c380a0471bf916e683e43f4a9f561c730e7b1.tar.gz
vaadin-framework-175c380a0471bf916e683e43f4a9f561c730e7b1.zip
#6770 error indicator should not be hidden when a DateField is "empty" because it has an invalid date string
svn changeset:20851/svn branch:6.7
Diffstat (limited to 'src/com/vaadin/ui/Select.java')
-rw-r--r--src/com/vaadin/ui/Select.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/vaadin/ui/Select.java b/src/com/vaadin/ui/Select.java
index d6530991e6..7b6fc07e5b 100644
--- a/src/com/vaadin/ui/Select.java
+++ b/src/com/vaadin/ui/Select.java
@@ -273,8 +273,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering,
optionRequest = true;
// Hide the error indicator if needed
- if (isRequired() && isEmpty() && getComponentError() == null
- && getErrorMessage() != null) {
+ if (shouldHideErrors()) {
target.addAttribute("hideErrors", true);
}
}