aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-client
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2018-05-23 09:41:59 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-05-23 09:41:59 +0300
commitf3a3a9f81287dac1f8c4af83f6d80c258c4800cd (patch)
treeed5db09ca655f79e2f7eef9f38661aad9ff407dc /compatibility-client
parent70e00ec7627df1ebccd2deffc7293a384dfaaec8 (diff)
downloadvaadin-framework-f3a3a9f81287dac1f8c4af83f6d80c258c4800cd.tar.gz
vaadin-framework-f3a3a9f81287dac1f8c4af83f6d80c258c4800cd.zip
Fix MultiSelectionRenderer right-click exception (#10944)
Fixes #10942
Diffstat (limited to 'compatibility-client')
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/widget/grid/selection/MultiSelectionRenderer.java4
1 files changed, 1 insertions, 3 deletions
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) {