summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/ui/nativebutton/VNativeButton.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/nativebutton/VNativeButton.java b/client/src/com/vaadin/client/ui/nativebutton/VNativeButton.java
index d8cb2e28c9..2b1ea563e3 100644
--- a/client/src/com/vaadin/client/ui/nativebutton/VNativeButton.java
+++ b/client/src/com/vaadin/client/ui/nativebutton/VNativeButton.java
@@ -123,6 +123,9 @@ public class VNativeButton extends Button implements ClickHandler {
}
if (disableOnClick) {
setEnabled(false);
+ // FIXME: This should be moved to NativeButtonConnector along with
+ // buttonRpcProxy
+ addStyleName(ApplicationConnection.DISABLED_CLASSNAME);
buttonRpcProxy.disableOnClick();
}