Skip to content

Commit

Permalink
fix: hide root output element (#20040) (#20044)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vaadin-bot and tltv authored Sep 25, 2024
1 parent d641601 commit 47cfb5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function Flow() {
}, [pathname, search, hash]);

return <>
<output ref={ref} />
<output ref={ref} style={{display: "none"}}/>
{portals.map(({children, domNode}) => createPortal(children, domNode))}
</>;
}
Expand Down

0 comments on commit 47cfb5c

Please sign in to comment.