Skip to content

Commit 7831c54

Browse files
committed
fix: tinycolor(...).isValid is not a function
1 parent 61731b5 commit 7831c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mixin/color.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default {
9494
this.colors = _colorChange(data, oldHue || this.oldHue);
9595
},
9696
isValidHex(hex) {
97-
return tinycolor(hex).isValid();
97+
return tinycolor(hex).isValid;
9898
},
9999
simpleCheckForValidColor(data) {
100100
const keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];

0 commit comments

Comments
 (0)