summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/Select.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/ui/Select.java')
-rw-r--r--src/com/vaadin/ui/Select.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/vaadin/ui/Select.java b/src/com/vaadin/ui/Select.java
index 7b6fc07e5b..439efdb864 100644
--- a/src/com/vaadin/ui/Select.java
+++ b/src/com/vaadin/ui/Select.java
@@ -148,7 +148,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering,
}
// Adds the required attribute
- if (isRequired()) {
+ if (!isReadOnly() && isRequired()) {
target.addAttribute("required", true);
}