diff options
author | Artur Signell <artur@vaadin.com> | 2013-06-05 09:51:53 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-06-05 09:52:32 +0300 |
commit | bd3f97586bbdfd8da9e3381c3ba02f4f0eadd93c (patch) | |
tree | 4ef642c61eedb3e0d8a3c380e85b35e76b02981c /client | |
parent | 892b8ba4e3f37ddda8c213a8534fc287b5cf00c9 (diff) | |
download | vaadin-framework-bd3f97586bbdfd8da9e3381c3ba02f4f0eadd93c.tar.gz vaadin-framework-bd3f97586bbdfd8da9e3381c3ba02f4f0eadd93c.zip |
Properly disable combobox when parent is disabled (#10734)
Change-Id: I3fc238b684d213f509b136d520e67920cb6ed1a4
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/combobox/ComboBoxConnector.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/ui/combobox/ComboBoxConnector.java b/client/src/com/vaadin/client/ui/combobox/ComboBoxConnector.java index d9eac91e2b..f91ff9e2b9 100644 --- a/client/src/com/vaadin/client/ui/combobox/ComboBoxConnector.java +++ b/client/src/com/vaadin/client/ui/combobox/ComboBoxConnector.java @@ -50,9 +50,6 @@ public class ComboBoxConnector extends AbstractFieldConnector implements getWidget().paintableId = uidl.getId(); getWidget().readonly = isReadOnly(); - getWidget().enabled = isEnabled(); - - getWidget().tb.setEnabled(getWidget().enabled); getWidget().updateReadOnly(); if (!isRealUpdate(uidl)) { @@ -280,4 +277,11 @@ public class ComboBoxConnector extends AbstractFieldConnector implements widget.updateRootWidth(); } } + + @Override + public void setWidgetEnabled(boolean widgetEnabled) { + super.setWidgetEnabled(widgetEnabled); + getWidget().enabled = widgetEnabled; + getWidget().tb.setEnabled(widgetEnabled); + } } |