diff options
author | Morgan Pittkin <18724853+mpittkin@users.noreply.github.com> | 2018-01-29 22:34:46 -0700 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-01-30 07:34:46 +0200 |
commit | 9aff07bf7a12d61d8683d80d5744a6ff0b422ea5 (patch) | |
tree | c57d6f8744f406745d43ee5d2a7b3e848b21e01e /server | |
parent | 9bee467ad605fce4ea37ab23555e2c05425f8e1c (diff) | |
download | vaadin-framework-9aff07bf7a12d61d8683d80d5744a6ff0b422ea5.tar.gz vaadin-framework-9aff07bf7a12d61d8683d80d5744a6ff0b422ea5.zip |
Fixes Button constructor not setting up RPC (#10566)
Fixes #10540
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Button.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Button.java b/server/src/main/java/com/vaadin/ui/Button.java index ef6d0c62dd..09c9d681c4 100644 --- a/server/src/main/java/com/vaadin/ui/Button.java +++ b/server/src/main/java/com/vaadin/ui/Button.java @@ -133,7 +133,7 @@ public class Button extends AbstractFocusable * @since 8.2 */ public Button(Resource icon, ClickListener listener) { - setIcon(icon); + this(icon); addClickListener(listener); } |