Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Theme mode switcher bug in react demo 8.1.8


Hello,

It seems the old bug resurfaced again in the latest update.

Please check this on https://preview.keenthemes.com/metronic8/react/demo2/dashboard

After theme mode switched to dark, then logged out and logged in again, the theme is dark but the switcher shows light option selected. Some parts of the background are from light theme and some are from dark theme, it is not consistent with the settings.

Thanks for cheking it out.

Best wishes,
Tamas


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


Hi Tamas,

Thank you for your feedback.

It is a demo2 bug I already submitted a fix for the next release.

Right now as a temporary solution, you can remove ThemeModeProvider from src/_metronic/layout/MasterLayout.tsx and add it to src/app/App.tsx as shown below.


<I18nProvider>
<LayoutProvider>
<ThemeModeProvider>
<AuthInit>
<Outlet />
<MasterInit />
</AuthInit>
</ThemeModeProvider>
</LayoutProvider>
</I18nProvider>


Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi Lauris,

Thanks for your quick response as always. Yes, this fixed issue.

Warm wishes,
Tamas


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(