]> source.dussan.org Git - vaadin-framework.git/commitdiff
#7183 Table in single select mode fires only 1 change event on iPad
authorArtur Signell <artur.signell@itmill.com>
Tue, 16 Aug 2011 09:22:39 +0000 (09:22 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 16 Aug 2011 09:22:39 +0000 (09:22 +0000)
svn changeset:20408/svn branch:6.7

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

index b3f7f86d0e11f4c11947204cbbed08c8de0bd83c..32e238024e7c73c0f5c79d0d5a0752dce2284143 100644 (file)
@@ -4756,7 +4756,19 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
                                                     .contains(getKey());
 
                                     if (!currentlyJustThisRowSelected) {
-                                        if (isMultiSelectModeDefault()) {
+                                        if (isSingleSelectMode()
+                                                || isMultiSelectModeSimple()) {
+                                            /*
+                                             * For default multi select mode
+                                             * (ctrl/shift) and for single
+                                             * select mode we need to clear the
+                                             * previous selection before
+                                             * selecting a new one when the user
+                                             * clicks on a row. Only in
+                                             * multiselect/simple mode the old
+                                             * selection should remain after a
+                                             * normal click.
+                                             */
                                             deselectAll();
                                         }
                                         toggleSelection();