diff options
Diffstat (limited to 'server/src/com/vaadin/ui/Slider.java')
-rw-r--r-- | server/src/com/vaadin/ui/Slider.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/Slider.java b/server/src/com/vaadin/ui/Slider.java index 15c94b6d3c..6b0880efd5 100644 --- a/server/src/com/vaadin/ui/Slider.java +++ b/server/src/com/vaadin/ui/Slider.java @@ -370,9 +370,10 @@ public class Slider extends AbstractField<Double> { if (attr.hasKey("vertical")) { setOrientation(SliderOrientation.VERTICAL); } - if (!attr.get("value").isEmpty()) { - setValue(DesignAttributeHandler.readAttribute("value", attr, - Double.class)); + if (attr.hasKey("value")) { + Double newFieldValue = DesignAttributeHandler.readAttribute( + "value", attr, Double.class); + setValue(newFieldValue, false, true); } } |