-
Notifications
You must be signed in to change notification settings - Fork 168
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
fix: ReactRouterOutlet interferes with layout #20771
Conversation
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@platosha does the change in #20770 with the new element fix this same issue as the created element sets display to contents?
The react-router-outlet is left without the style though so this might be needed.
I couldn't reproduce the issue with the grid not showing which might be because I don't have hilla 24.7.crudflow-SNAPSHOt available
The issue can be seen in https://github.com/Artur-/flow-crud-demo/tree/hilla, potentially requires removing some grid data binding not yet in Hilla snapshots. The |
Separate issue. #20770 does not change the style of the ReactRouterOutlet wrapper, so this is still needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without display:contents
the Grid
component is not rendered at all, else rendered fine.
The only thing that I'm not entirely sure about is that VerticalLayout
sets width:100%
by default and this prevents react-router-outlet
to show up always, because the side menu vertical layout takes all the width on the page. However, if I set it's width to auto
, it shows up nicely.
That's probably fine as the example project uses divs and vertical layouts instead of AppLayout
that has other width default apparently.
This ticket/PR has been released with Vaadin 24.7.0.alpha3 and is also targeting the upcoming stable 24.7.0 version. |
Fixes #20767