File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -288,7 +288,6 @@ export default createComponent({
288288 arrowDirection = { this . arrowDirection }
289289 class = { bem ( {
290290 error : this . error ,
291- disabled : this . $attrs . disabled ,
292291 [ `label-${ labelAlign } ` ] : labelAlign ,
293292 'min-height' : this . type === 'textarea' && ! this . autosize
294293 } ) }
Original file line number Diff line number Diff line change 3838
3939 & :disabled {
4040 color : @field-input-disabled-text-color ;
41- -webkit-text-fill-color : @field-input-disabled-text-color ;
41+ -webkit-text-fill-color : @field-input-disabled-text-color ; // fix disabled color in iOS
4242 background-color : transparent ;
4343 opacity : 1 ;
4444 }
117117 }
118118 }
119119
120- &--disabled {
121- .van-field__control {
122- color : @field-input-disabled-text-color ;
123- }
124- }
125-
126120 &--error {
127121 .van-field__control {
128122 & ,
129123 & ::placeholder {
130124 color : @field-input-error-text-color ;
125+ -webkit-text-fill-color : @field-input-error-text-color ;
131126 }
132127 }
133128 }
You can’t perform that action at this time.
0 commit comments