Skip to content

Commit 47cfb5c

Browse files
vaadin-bottltv
andauthored
fix: hide root output element (#20040) (#20044)
Ensures that root output element added for React router in Flow.tsx doesn't accidentally change the main layout with CSS rules targeting it. Fixes: #19871 Co-authored-by: Tomi Virtanen <tltv@vaadin.com>
1 parent d641601 commit 47cfb5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • flow-server/src/main/resources/com/vaadin/flow/server/frontend

‎flow-server/src/main/resources/com/vaadin/flow/server/frontend/Flow.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function Flow() {
367367
}, [pathname, search, hash]);
368368

369369
return <>
370-
<output ref={ref} />
370+
<output ref={ref} style={{display: "none"}}/>
371371
{portals.map(({children, domNode}) => createPortal(children, domNode))}
372372
</>;
373373
}

0 commit comments

Comments
 (0)