Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page loading hangs if legacy wrapper is hidden #91

Closed
mshabarov opened this issue Aug 18, 2021 · 0 comments
Closed

Page loading hangs if legacy wrapper is hidden #91

mshabarov opened this issue Aug 18, 2021 · 0 comments
Assignees
Labels

Comments

@mshabarov
Copy link

Description of the bug / feature

When the LegacyWrapper is being turned to hidden state (.setVisible(false)), or it is wrapped into a div which is hidden, then the initial page loading stucks with hanging and blinking loading indicator.
The page content itself is rendered fine.
As soon as the element is turned in visible state, the loading process completes fine.

Minimal reproducible example

This issue can be reproduced with InvisibleElementWithLegacyChildView test page.
Here is repetition of the test page codes:

@Route("com.vaadin.test.InvisibleElementWithLegacyChildView")
public class InvisibleElementWithLegacyChildView extends Div
        implements HasLegacyComponents {

    public InvisibleElementWithLegacyChildView() {
        LegacyWrapper wrapper = new LegacyWrapper(
                new Label("A Legacy Element"));

        Div wrapperDiv = new Div();
        wrapperDiv.add(wrapper);
        wrapperDiv.setVisible(false);

        add(wrapperDiv);
    }
}

Run the jetty and open localhost:9998/com.vaadin.test.InvisibleElementWithLegacyChildView.

Expected behavior

Page is being loading fine.

Actual behavior

Loading indicator hangs and blinks.

Versions:

- Vaadin / Flow version: flow 7.0.7, 8.0.0.beta3, 9.0.0.alpha2, 2.6.7, 2.7.0.alpha2.
- MPR: 2.2.3
- Vaadin Framework 8.13.0
- Java version: 1.8
- OS version: MacOS
- Browser version (if applicable): Chrome 92
- Application Server (if applicable): Jetty
- IDE (if applicable): IDEA
@mshabarov mshabarov self-assigned this Aug 18, 2021
@pleku pleku closed this as completed Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant