react-bootstrap-theme-switcher icon indicating copy to clipboard operation
react-bootstrap-theme-switcher copied to clipboard

ThemeSwitcher sometimes doesn't save the last selected theme after reload.

Open alexander-lebed opened this issue 7 years ago • 1 comments
trafficstars

After select some theme from the list AFTER 'default' theme and relaod window it rolls back to the previous one.

<ThemeSwitcher defaultTheme='default' themePath='/themes' storeThemeKey='ui-theme' themes={themes}>
...
</ThemeSwitcher>

alexander-lebed avatar Aug 29 '18 11:08 alexander-lebed

The workaround is to rename 'default' theme to something else, so it can be saved to localStorage.

alexander-lebed avatar Aug 29 '18 11:08 alexander-lebed