]> source.dussan.org Git - vaadin-framework.git/commitdiff
#7472 PopupDatefield button should not be focusable
authorArtur Signell <artur.signell@itmill.com>
Tue, 27 Sep 2011 11:23:42 +0000 (11:23 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 27 Sep 2011 11:23:42 +0000 (11:23 +0000)
svn changeset:21342/svn branch:6.7

src/com/vaadin/terminal/gwt/client/ui/VPopupCalendar.java

index 64c2ecabd523b641a90808ea6cda3028d808a444..2cbae571751432a43dfe03492bd79148e6954ece 100644 (file)
@@ -60,7 +60,8 @@ public class VPopupCalendar extends VTextualDate implements Paintable, Field,
         calendarToggle.setStyleName(CLASSNAME + "-button");\r
         calendarToggle.setText("");\r
         calendarToggle.addClickHandler(this);\r
-        calendarToggle.getElement().setTabIndex(-1);\r
+        // -2 instead of -1 to avoid FocusWidget.onAttach to reset it\r
+        calendarToggle.getElement().setTabIndex(-2);\r
         add(calendarToggle);\r
 \r
         calendar = GWT.create(VCalendarPanel.class);\r