Skip to content

Commit

Permalink
use setAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
davidphamntq committed Sep 22, 2023
1 parent 2eb581a commit c3d8bb2
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 c3d8bb2

Please sign in to comment.