From 3612ce1c294208dd85405c5e5956eca49e636d75 Mon Sep 17 00:00:00 2001 From: Teemu Pòˆntelin Date: Sun, 16 Mar 2014 20:01:16 +0200 Subject: Fixed aria-disabled attribute value on DateField button (#13463) Change-Id: I9b13b76a92f0070c3b4c30556a276d60ceba94e8 --- client/src/com/vaadin/client/ui/VPopupCalendar.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'client') 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); } /** -- cgit v1.2.3