diff --git a/src/components/force-dark-theme.tsx b/src/components/force-dark-theme.tsx index 5f6259508..1808ff266 100644 --- a/src/components/force-dark-theme.tsx +++ b/src/components/force-dark-theme.tsx @@ -32,6 +32,7 @@ export function ForceDarkTheme() { return () => { if (prev) root.setAttribute("data-theme", prev); + else root.removeAttribute("data-theme"); root.style.colorScheme = prevScheme || ""; }; }, []);