diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2019-11-21 21:17:05 +0200 |
---|---|---|
committer | Tatu Lund <tatu@vaadin.com> | 2019-11-21 21:17:05 +0200 |
commit | 38b7419f2753b108f7f338af94b08cad5be624e3 (patch) | |
tree | 9c2081d34a5f5ed2094a4f300f193922ded976cc /compatibility-client/src | |
parent | 346d564dfef38058cab7065d3ce889b145141555 (diff) | |
download | vaadin-framework-38b7419f2753b108f7f338af94b08cad5be624e3.tar.gz vaadin-framework-38b7419f2753b108f7f338af94b08cad5be624e3.zip |
Fix issue where Chrome refused to select text in Table (#11709) (#11818)
Manual cherry-pick from Vaadin 7.
Diffstat (limited to 'compatibility-client/src')
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java index 088c8a2bd6..36b1468bbd 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java @@ -6348,15 +6348,15 @@ public class VScrollTable extends FlowPanel if (targetCellOrRowFound) { setRowFocus(this); - ensureFocus(); if (dragmode != 0 && (event .getButton() == NativeEvent.BUTTON_LEFT)) { + ensureFocus(); startRowDrag(event, type, targetTdOrTr); } else if (event.getCtrlKey() || event.getShiftKey() || event.getMetaKey() && isMultiSelectModeDefault()) { - + ensureFocus(); // Prevent default text selection in Firefox event.preventDefault(); |