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

ComponentRender not rendering buttons in simple grid. #1976

Closed
bsutton opened this issue Apr 9, 2019 · 3 comments
Closed

ComponentRender not rendering buttons in simple grid. #1976

bsutton opened this issue Apr 9, 2019 · 3 comments
Labels

Comments

@bsutton
Copy link

bsutton commented Apr 9, 2019

I've attached a minimal working demo of the problem.

Essentially the component render is failing to render a button.

The sample shows both a native button and a vaadin button.

The native button renders but the label is missing.
The vaadin button doesn't render at all.

I'm using vaadin 13.0.3.

Sample gradle project
testgrid.zip

Here is how the page renders.
image

You can see here that the 'slot' in the DOM is actually empty for the vaadin-button and whilst the native button is rendered its content is empty hence no lable.

image

@bsutton
Copy link
Author

bsutton commented Apr 9, 2019

Interestingly if I call entityGrid.getDataProvider().refreshAll(); the native button's label will appear.

@jcgueriaud1
Copy link
Contributor

Hi,

As a workaround, you can put this.add(personGrid); at the end of the buildGrid function it will work.

This bug is related to vaadin/vaadin-grid-flow#710

@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-grid-flow Oct 6, 2020
@vaadin-bot vaadin-bot added the flow label Oct 6, 2020
@web-padawan
Copy link
Member

The bug linked in the above comment #1976 (comment) was fixed by vaadin/flow#6144 so I'm closing this issue.
Please submit a new issue if you still experience this problem with Vaadin 14.x LTS or newer versions.

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

4 participants