diff options
author | caalador <mikael.grankvist@gmail.com> | 2017-02-03 13:59:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 13:59:24 +0200 |
commit | 8c87ae6b0946a49b099ed4edd32b773c0cc8a8c2 (patch) | |
tree | 718e3a7599d6ce2d887e73b6b84deb1b981dee23 /client | |
parent | 6d435e11b5261582d9b1934280bef6b51383dc15 (diff) | |
download | vaadin-framework-8c87ae6b0946a49b099ed4edd32b773c0cc8a8c2.tar.gz vaadin-framework-8c87ae6b0946a49b099ed4edd32b773c0cc8a8c2.zip |
Fix exception on remove column. (#8432)
Schedule column ordering so that possible onUnregister methods get run first.
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java index 91ad40c233..98622c2716 100644 --- a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java +++ b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java @@ -291,8 +291,10 @@ public class GridConnector extends AbstractListingConnector @SuppressWarnings("unchecked") @OnStateChange("columnOrder") void updateColumnOrder() { - getWidget().setColumnOrder(getState().columnOrder.stream() - .map(this::getColumn).toArray(size -> new Column[size])); + Scheduler.get() + .scheduleFinally(() -> getWidget().setColumnOrder( + getState().columnOrder.stream().map(this::getColumn) + .toArray(size -> new Column[size]))); } @OnStateChange("columnResizeMode") |