From 72965fac5ae026e7089519619fc6bf98409a3575 Mon Sep 17 00:00:00 2001 From: "anhpt.dev.ntq" Date: Thu, 21 Sep 2023 15:08:52 +0700 Subject: [PATCH] use setAttribute --- docs/src/modules/components/AppSettingsDrawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/modules/components/AppSettingsDrawer.js b/docs/src/modules/components/AppSettingsDrawer.js index 51d6b8d4258e59..4a8718cc1abd9b 100644 --- a/docs/src/modules/components/AppSettingsDrawer.js +++ b/docs/src/modules/components/AppSettingsDrawer.js @@ -77,7 +77,7 @@ function AppSettingsDrawer(props) { } catch (error) { // thrown when cookies are disabled. } - document.documentElement.dataset.muiColorScheme = paletteMode; + document.documentElement.setAttribute('data-mui-color-scheme', paletteMode); changeTheme({ paletteMode }); } };