diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-06 12:32:28 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-11-06 12:32:28 +0200 |
commit | f12ec250f72182fc4fe759d712aed15899000b42 (patch) | |
tree | 3b83aab5b98c997c843dfaabb67198493d6e4f50 | |
parent | 755fe2074bc59ad7079979e11d9a9d809e632857 (diff) | |
download | vaadin-framework-f12ec250f72182fc4fe759d712aed15899000b42.tar.gz vaadin-framework-f12ec250f72182fc4fe759d712aed15899000b42.zip |
Add v-disabled when disabling on client side (#10137)
Change-Id: I6ec86d98f68b11ee4149415cb9ee9aa36cb8570c
-rw-r--r-- | client/src/com/vaadin/client/ui/nativebutton/VNativeButton.java | 3 |
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(); } |