Push issues on layout visibility changes

Hello everyone!

I’ve been experiencing problems with every 8.1.x release when using Push.
Already tried both automatic and manual modes, all transport options and still failing.

If I hide a component(Button, Label, TextField, etc) using setVisible(false) method, and the UI.getCurrent.push(), everything works as expected.
On the other hand, if I use setVisible(false) on a Layout, it loses all format when pushed to client and the View has to be refreshed.

Multiple client-side exceptions are shown as well. The main one being:

Error updating connector hierarchy java.lang.IllegalStateException: An extension can not be moved from one parent to another. Also:

com.vaadin.client.communication.MessageHandler SEVERE: Error sending hierarchy change events com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : ax(...) is null Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : ax(...) is null No server-side exceptions are thrown.

This works perfectly on 8.0.7

Any ideas?

Launch in superdevmode and you will be able to see the mapped js to classes in your browser console. see
https://vaadin.com/docs/-/part/framework/clientside/clientside-debugging.html

btw, I have a simiar issue as you.
https://vaadin.com/forum/#!/thread/16660986

Nice to know I’m not alone! :slight_smile:

I added some code and comments on the github issue. Let’s see if we can find a solution.