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-31 14:27:32 +0200 |
commit | 3bfe3e67ca2c1d11458e08abdb51cd5bb1fa6073 (patch) | |
tree | 24642573c4a004b902892ab49e1af7edad45aded | |
parent | c909ae54e366e1a96ee64f668575ce595f481c8e (diff) | |
download | vaadin-framework-3bfe3e67ca2c1d11458e08abdb51cd5bb1fa6073.tar.gz vaadin-framework-3bfe3e67ca2c1d11458e08abdb51cd5bb1fa6073.zip |
Fixes Button constructor not setting up RPC (#10566)
Fixes #10540
-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); } |