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

Commit d6996b7

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(colors): validate theme is a string
- scope.$watch was calling parseColors with a scope and not a theme string, which caused the theme parsing when mdThemeController is present to be incorrect fixes #8720 Closes #8745
1 parent ddc9e8d commit d6996b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/colors/colors.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@
283283
var lastColors = {};
284284

285285
var parseColors = function (theme) {
286+
if (typeof theme !== 'string') {
287+
theme = '';
288+
}
289+
286290
if (!attrs.mdColors) {
287291
attrs.mdColors = '{}';
288292
}

0 commit comments

Comments
 (0)