Skip to content

Commit c0d14b0

Browse files
author
pipeline
committed
config(EJ2-4094): theme switch issue fix
1 parent 22b0b50 commit c0d14b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/sb.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ export class SBController {
295295
return;
296296
} else {
297297
localStorage.setItem('ej2-ng-switch', targetId);
298+
localStorage.setItem('ej2-theme', location.hash.split('/')[1]);
298299
location.reload();
299300
}
300301
}
@@ -458,6 +459,7 @@ export class SBController {
458459
themeName = themeName.toLowerCase();
459460
themeName = (themes.indexOf(themeName) !== -1) ? themeName : 'material';
460461
localStorage.setItem('ej2-theme', themeName);
462+
localStorage.setItem('ej2-ng-switch', select('.switcher .active').id);
461463
location.reload();
462464
}
463465
closeThemeSelection(): void {

0 commit comments

Comments
 (0)