diff options
author | Anastasia Smirnova <anasmi@utu.fi> | 2019-04-04 10:00:46 +0300 |
---|---|---|
committer | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2019-04-04 10:00:46 +0300 |
commit | 049e6f39aadab1785d78bceaac575d25ea56dad4 (patch) | |
tree | 4c61adaa0b255ab8de9a3f7d15e6b3d9b3210ca7 /client | |
parent | 0035aa1d7a8645a3759d27864b95d83a4b8c2475 (diff) | |
download | vaadin-framework-049e6f39aadab1785d78bceaac575d25ea56dad4.tar.gz vaadin-framework-049e6f39aadab1785d78bceaac575d25ea56dad4.zip |
Read-only combobox should not handle PASTE event (#11529)
Fixes 11528
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VComboBox.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VComboBox.java b/client/src/main/java/com/vaadin/client/ui/VComboBox.java index 6ddb2cd29a..95e4505d68 100644 --- a/client/src/main/java/com/vaadin/client/ui/VComboBox.java +++ b/client/src/main/java/com/vaadin/client/ui/VComboBox.java @@ -1807,9 +1807,9 @@ public class VComboBox extends Composite implements Field, KeyDownHandler, @Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); - if (event.getTypeInt() == Event.ONPASTE) { - if (textInputEnabled && connector.isEnabled()) { + if (textInputEnabled && connector.isEnabled() + && !connector.isReadOnly()) { filterOptions(currentPage); } } |