We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 570e803 commit b85587eCopy full SHA for b85587e
src/components/range/range-utils.js
@@ -60,12 +60,17 @@ export let mixin = {
60
},
61
computed: {
62
classes () {
63
- return {
+ const cls = {
64
disabled: this.disable,
65
'label-always': this.labelAlways,
66
- 'has-error': this.error,
67
- [`text-${this.color}`]: !this.error && this.color
+ 'has-error': this.error
68
}
+
69
+ if (!this.error && this.color) {
70
+ cls[`text-${this.color}`] = true
71
+ }
72
73
+ return cls
74
75
labelColor () {
76
return this.error
0 commit comments