From 09207941a982b825dbd429b71c7e89712a3da8f2 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Fri, 2 Nov 2018 11:51:23 +0100 Subject: Make value changes in color picker user originated (#11252) * Make value changes in color picker user originated This is not a programmatically initiated event, so it should have the 'userOriginated' property set to 'true'. - Added test to verify that indeed event is user originated after the change --- server/src/main/java/com/vaadin/ui/AbstractColorPicker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/src') diff --git a/server/src/main/java/com/vaadin/ui/AbstractColorPicker.java b/server/src/main/java/com/vaadin/ui/AbstractColorPicker.java index be359cc2ff..cf4c8c8b74 100644 --- a/server/src/main/java/com/vaadin/ui/AbstractColorPicker.java +++ b/server/src/main/java/com/vaadin/ui/AbstractColorPicker.java @@ -464,8 +464,8 @@ public abstract class AbstractColorPicker extends AbstractField { window.addCloseListener( event -> getState().popupVisible = false); window.addValueChangeListener(event -> { - setValue(event.getValue()); - rpc.changeColor(event.getValue().getCSS()); + window.setValue(color); + setValue(event.getValue(), true); }); window.getHistory().setValue(color); window.setPositionX(positionX); -- cgit v1.2.3