Skip to content

Commit

Permalink
use setAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
davidphamntq committed Sep 21, 2023
1 parent fdd623d commit 72965fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/modules/components/AppSettingsDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
};
Expand Down

0 comments on commit 72965fa

Please sign in to comment.