Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


Hi Lauris,

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

Warm wishes,
Tamas



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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(