diff --git a/website/app/layout.tsx b/website/app/layout.tsx index 3c09282594..eecc1540ad 100644 --- a/website/app/layout.tsx +++ b/website/app/layout.tsx @@ -26,6 +26,19 @@ window.addEventListener("storage", (event) => { }); `; +// See https://github.com/facebook/react/issues/19841#issuecomment-694978234 +const dblClickWorkaround = ` +if (typeof window !== "undefined") { + const addEventListener = Node.prototype.addEventListener; + Node.prototype.addEventListener = function (type, callback, options) { + if (type === "dblclick" && (options === true || options === false)) { + return; + } + return addEventListener.call(this, type, callback, options); + }; +} +`; + const inter = Inter({ subsets: ["latin"] }); export function generateMetadata() { @@ -37,6 +50,7 @@ export default function Layout({ children }: PropsWithChildren) {