summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
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;
}