diff options
author | Teemu Pòˆntelin <teemu@vaadin.com> | 2014-03-16 20:01:16 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-03-31 06:50:14 +0000 |
commit | 3612ce1c294208dd85405c5e5956eca49e636d75 (patch) | |
tree | 2de1d16766073653faaa7b956872f0da2b77b5de /client | |
parent | ca5d053e20700f36db97874c3698e6d365c8cedb (diff) | |
download | vaadin-framework-3612ce1c294208dd85405c5e5956eca49e636d75.tar.gz vaadin-framework-3612ce1c294208dd85405c5e5956eca49e636d75.zip |
Fixed aria-disabled attribute value on DateField button (#13463)
Change-Id: I9b13b76a92f0070c3b4c30556a276d60ceba94e8
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); } /** |