From: Artur Signell Date: Tue, 27 Sep 2011 11:23:42 +0000 (+0000) Subject: #7472 PopupDatefield button should not be focusable X-Git-Tag: 6.7.0.rc1~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1cc1250343ce3420e6c1a7723209c7c5e851b621;p=vaadin-framework.git #7472 PopupDatefield button should not be focusable svn changeset:21342/svn branch:6.7 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java index 64c2ecabd5..2cbae57175 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java @@ -60,7 +60,8 @@ public class VPopupCalendar extends VTextualDate implements Paintable, Field, calendarToggle.setStyleName(CLASSNAME + "-button"); calendarToggle.setText(""); calendarToggle.addClickHandler(this); - calendarToggle.getElement().setTabIndex(-1); + // -2 instead of -1 to avoid FocusWidget.onAttach to reset it + calendarToggle.getElement().setTabIndex(-2); add(calendarToggle); calendar = GWT.create(VCalendarPanel.class);