summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-18 22:59:01 +0300
committerArtur Signell <artur@vaadin.com>2013-06-25 13:09:40 +0300
commite371001c7bf60c424081ef8b047b6031e2ca3781 (patch)
tree309c13df5df284872ad8ad036897119fa678623d /client
parentdbfb9a318970c691c7a768992db9c5c8ca1f14bb (diff)
downloadvaadin-framework-e371001c7bf60c424081ef8b047b6031e2ca3781.tar.gz
vaadin-framework-e371001c7bf60c424081ef8b047b6031e2ca3781.zip
Ensure caption is used when child is set to required (#12077)
Change-Id: Id4a9674c1b2e1c41dbba1f6fde11502400591a52
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/VCaption.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/VCaption.java b/client/src/com/vaadin/client/VCaption.java
index d033c2b4fe..d0338de4a1 100644
--- a/client/src/com/vaadin/client/VCaption.java
+++ b/client/src/com/vaadin/client/VCaption.java
@@ -437,6 +437,12 @@ public class VCaption extends HTML {
return true;
}
+ if (state instanceof AbstractFieldState) {
+ if (((AbstractFieldState) state).required) {
+ return true;
+ }
+ }
+
return false;
}