Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 73b1df4

Browse files
committed
fix(theming): make theme inheritance not depend on DOM order
references #2483
1 parent dd11583 commit 73b1df4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/services/theming/theming.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ function ThemingProvider($mdColorPalette) {
338338
if (oldTheme) el.removeClass('md-' + oldTheme +'-theme');
339339
el.addClass('md-' + theme + '-theme');
340340
el.data('$mdThemeName', theme);
341+
if (ctrl) {
342+
el.data('$mdThemeController', ctrl);
343+
}
341344
}
342345
};
343346

0 commit comments

Comments
 (0)