diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2019-11-21 07:43:14 +0200 |
---|---|---|
committer | Tatu Lund <tatu@vaadin.com> | 2019-11-21 07:43:14 +0200 |
commit | 97d4222a28fecf03c636b392ec976113769b062f (patch) | |
tree | d38337294dc029ee996197aace386768342fd206 /client/src | |
parent | ce497adfbdb6875e3cbe783cfc280999a9ae04d9 (diff) | |
download | vaadin-framework-97d4222a28fecf03c636b392ec976113769b062f.tar.gz vaadin-framework-97d4222a28fecf03c636b392ec976113769b062f.zip |
Don't attempt to send expand/collapse events for disabled TreeGrid. (#11823)
The attempt gets blocked later down the line in any case and never
reaches the server, but sending it messes up TreeGrid's internal state.
It gets stuck waiting for the resolution of the blocked call that can
then only be resolved by server-side sending its own expand/collapse
request programmatically. Until that happens no further expand/collapse
attempts will get sent to server even after the TreeGrid has been
enabled again.
Tree is also affected as it is built upon TreeGrid.
Fixes #11822
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java b/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java index c220057508..253e03a80c 100644 --- a/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java @@ -288,7 +288,7 @@ public class TreeGridConnector extends GridConnector { */ private void setCollapsed(int rowIndex, boolean collapsed, boolean userOriginated) { - if (isAwaitingRowChange()) { + if (isAwaitingRowChange() || !getState().enabled) { return; } if (collapsed) { |