diff options
author | Artur Signell <artur@vaadin.com> | 2013-10-16 15:31:15 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-10-16 12:56:28 +0000 |
commit | 6c1ba81e0777080a59bad1eba44cc82f185ba6b3 (patch) | |
tree | 852186d4be1c3a772bdad11daf0e011629e98057 /server/src | |
parent | d41967dffa3a2fda8df98d7973de4a55dbfde31e (diff) | |
download | vaadin-framework-6c1ba81e0777080a59bad1eba44cc82f185ba6b3.tar.gz vaadin-framework-6c1ba81e0777080a59bad1eba44cc82f185ba6b3.zip |
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
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/ui/Button.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } } |