Skip to content

Commit

Permalink
fix: ReactRouterOutlet interferes with layout (#20771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- authored Jan 7, 2025
1 parent d143ab9 commit bcd7a0d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import { ReactAdapterElement } from "Frontend/generated/flow/ReactAdapter.js";
import React from "react";

class ReactRouterOutletElement extends ReactAdapterElement {
connectedCallback() {
super.connectedCallback();
this.style.display = 'contents';
}

protected render(): React.ReactElement | null {
return <Outlet />;
}
Expand Down

0 comments on commit bcd7a0d

Please sign in to comment.