Skip to content

Commit 13c9502

Browse files
authored
fix
1 parent 3f0c545 commit 13c9502

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/util/cast.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class Cast {
112112
*/
113113
static toRgbColorObject (value) {
114114
let color;
115+
if (typeof value === 'object') value += '';
115116
if (typeof value === 'string' && value.substring(0, 1) === '#') {
116117
color = Color.hexToRgb(value);
117118

0 commit comments

Comments
 (0)