]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix MultiSelectionRenderer right-click exception (#10945)
authorIlia Motornyi <elmot@vaadin.com>
Wed, 23 May 2018 06:46:17 +0000 (09:46 +0300)
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>
Wed, 23 May 2018 06:46:17 +0000 (09:46 +0300)
Related #10942

client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java

index 0845548b50627c7c855192e13a0b912d3cfee1e1..553fff6acc85726e73b7a8e280de9e270d7c3168 100644 (file)
@@ -659,10 +659,8 @@ public class MultiSelectionRenderer<T>
                         && event.getButton() == NativeEvent.BUTTON_LEFT)) {
             startDragSelect(event, Element.as(event.getEventTarget()));
             return true;
-        } else {
-            throw new IllegalStateException(
-                    "received unexpected event: " + event.getType());
         }
+        return false;
     }
 
     private void startDragSelect(NativeEvent event, final Element target) {