From 6c1ba81e0777080a59bad1eba44cc82f185ba6b3 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 16 Oct 2013 15:31:15 +0300 Subject: [PATCH] Reverted button click() logic check (#12743) The isConnectorEnabled() method should only to be used to check if the client side is allowed to interact with the button, not on the server side (isConnectorEnabled() is false if the component is not attached to a UI) Change-Id: I56cd93a1041432199337148f5c4a1449a825c5bc --- server/src/com/vaadin/ui/Button.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/vaadin/ui/Button.java b/server/src/com/vaadin/ui/Button.java index 589f30d631..1bcf802f12 100644 --- a/server/src/com/vaadin/ui/Button.java +++ b/server/src/com/vaadin/ui/Button.java @@ -340,7 +340,7 @@ public class Button extends AbstractComponent implements * No action is taken is the button is disabled. */ public void click() { - if (isConnectorEnabled() && !isReadOnly()) { + if (isEnabled() && !isReadOnly()) { fireClick(); } } -- 2.39.5