diff options
author | Artur Signell <artur@vaadin.com> | 2013-10-15 09:33:43 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-10-15 13:20:54 +0000 |
commit | c7ae45cc2404c2eab557866f310a2bb2130ddffe (patch) | |
tree | 936195bde7d85b83670653e44174af7d0385cfd1 /server/src/com/vaadin/ui/Button.java | |
parent | d461fb438f62b38d2082b41b0a3c7a1189927c3d (diff) | |
download | vaadin-framework-c7ae45cc2404c2eab557866f310a2bb2130ddffe.tar.gz vaadin-framework-c7ae45cc2404c2eab557866f310a2bb2130ddffe.zip |
Validate that the connector is enabled before triggering actions for it (#12743)
Automated test enabled only for IE9-IE11 because of #12785
Change-Id: I265e5d1ead3fa56469861c5a98dcc9d0106d1051
Diffstat (limited to 'server/src/com/vaadin/ui/Button.java')
-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 1bcf802f12..589f30d631 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 (isEnabled() && !isReadOnly()) { + if (isConnectorEnabled() && !isReadOnly()) { fireClick(); } } |