diff options
2 files changed, 2 insertions, 6 deletions
diff --git a/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java b/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java index 3c95353a32..8365083f7e 100644 --- a/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java +++ b/client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java @@ -677,10 +677,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) { diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/widget/grid/selection/MultiSelectionRenderer.java b/compatibility-client/src/main/java/com/vaadin/v7/client/widget/grid/selection/MultiSelectionRenderer.java index 588b8c7936..cae999c7f1 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/widget/grid/selection/MultiSelectionRenderer.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/widget/grid/selection/MultiSelectionRenderer.java @@ -653,10 +653,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) { |