aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2019-12-23 09:08:43 +0200
committerAnastasia Smirnova <anasmi@utu.fi>2019-12-23 09:08:43 +0200
commit0701caa17560f878940bc008225806fe3cca1c9d (patch)
treec4db5be9817a40236f29e0a3048443af6cb57312 /client
parent08c748acfffa5c6f94933561de19fd8522ab8cad (diff)
downloadvaadin-framework-0701caa17560f878940bc008225806fe3cca1c9d.tar.gz
vaadin-framework-0701caa17560f878940bc008225806fe3cca1c9d.zip
Fix to RadioButtonGroup readOnly handling. (#11855)
* Fix to RadioButtonGroup readOnly handling. Updated the connector to use the widget's enabled and readOnly handling as intended. Fixes #11843
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java b/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java
index 2422eec8a5..44bae4b4fd 100644
--- a/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java
@@ -86,7 +86,12 @@ public class RadioButtonGroupConnector
@OnStateChange("readOnly")
void updateWidgetReadOnly() {
- getWidget().setEnabled(isEnabled() && !isReadOnly());
+ getWidget().setReadonly(isReadOnly());
+ }
+
+ @OnStateChange("enabled")
+ void updateWidgetEnabled() {
+ getWidget().setEnabled(isEnabled());
}
@OnStateChange("selectedItemKey")