diff options
author | Anastasia Smirnova <anasmi@utu.fi> | 2019-03-27 12:34:35 +0200 |
---|---|---|
committer | Tatu Lund <tatu@vaadin.com> | 2019-03-27 12:34:35 +0200 |
commit | 2fa45756848bd5168cb0cc1ca702675afef6f9ca (patch) | |
tree | df3eaa263a92cf665d21098fb07ec3f3b3d393a5 /compatibility-client | |
parent | 5fc51c61fa3e2f98da293966d73cc1b7f1c7627c (diff) | |
download | vaadin-framework-2fa45756848bd5168cb0cc1ca702675afef6f9ca.tar.gz vaadin-framework-2fa45756848bd5168cb0cc1ca702675afef6f9ca.zip |
Making V8 ReadOnly TextField select row in table upon clicking (#11480)
Add check for the V8 TextField used in Table in compatibility mode. This makes clicking cell with the TextField select the row, preserving behaviour from V7.
Through, as it's noted also before, this is an improved workaround, not a proper solution to address the issue.
Fixes #11474
Diffstat (limited to 'compatibility-client')
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java | 5 |
1 files changed, 4 insertions, 1 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 52e2317d8d..fcf9c75590 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 @@ -6488,7 +6488,10 @@ public class VScrollTable extends FlowPanel if (!(widget instanceof VLabel) && !(widget instanceof VEmbedded) && !(widget instanceof VTextField - && ((VTextField) widget).isReadOnly())) { + && ((VTextField) widget).isReadOnly()) + && !(widget instanceof com.vaadin.client.ui.VLabel) + && !(widget instanceof com.vaadin.client.ui.VTextField + && ((com.vaadin.client.ui.VTextField) widget).isReadOnly())) { return null; } } |