fix: ReactRouterOutlet interferes with layout#20771
Conversation
|
caalador
left a comment
There was a problem hiding this comment.
@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. |
mshabarov
left a comment
There was a problem hiding this comment.
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