aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-08-18 12:03:36 +0300
committerHenri Sara <henri.sara@gmail.com>2017-08-18 12:03:36 +0300
commit563b0abb73c5c1a29763b3c1f39f56e876704357 (patch)
tree9b067d6d52f1408ea68e6771406d6dacdc5c8e08 /server
parentd9b8199a708bf328088674dab4265293fdb2ff95 (diff)
downloadvaadin-framework-563b0abb73c5c1a29763b3c1f39f56e876704357.tar.gz
vaadin-framework-563b0abb73c5c1a29763b3c1f39f56e876704357.zip
Fix state update on Grid Column hide in client (#9836)
Fixes #9152
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/ui/Grid.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java
index 2828742ee6..663df20b88 100644
--- a/server/src/main/java/com/vaadin/ui/Grid.java
+++ b/server/src/main/java/com/vaadin/ui/Grid.java
@@ -681,9 +681,8 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents,
@Override
public void columnVisibilityChanged(String internalId, boolean hidden) {
Column<T, ?> column = getColumnByInternalId(internalId);
- ColumnState columnState = column.getState(false);
- if (columnState.hidden != hidden) {
- columnState.hidden = hidden;
+ if (column.isHidden() != hidden) {
+ column.setHidden(hidden);
fireColumnVisibilityChangeEvent(column, hidden, true);
}
}