diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VPopupCalendar.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/client/src/com/vaadin/client/ui/VPopupCalendar.java b/client/src/com/vaadin/client/ui/VPopupCalendar.java index 57a0222118..d2c9b7160c 100644 --- a/client/src/com/vaadin/client/ui/VPopupCalendar.java +++ b/client/src/com/vaadin/client/ui/VPopupCalendar.java @@ -458,13 +458,8 @@ public class VPopupCalendar extends VTextualDate implements Field, public void setEnabled(boolean enabled) { super.setEnabled(enabled); - if (enabled) { - Roles.getButtonRole().setAriaDisabledState( - calendarToggle.getElement(), true); - } else { - Roles.getButtonRole().setAriaDisabledState( - calendarToggle.getElement(), false); - } + Roles.getButtonRole().setAriaDisabledState(calendarToggle.getElement(), + !enabled); } /** |