@@ -196,7 +196,6 @@ export class TextField extends TextFieldBase {
196
196
const nColor = getColorStateList ( color ) ;
197
197
this . layoutView . setErrorTextColor ( nColor ) ;
198
198
// TODO: find why it fails in cli build
199
- //@ts -ignore
200
199
this . layoutView . setBoxStrokeErrorColor ( nColor ) ;
201
200
}
202
201
@@ -223,26 +222,19 @@ export class TextField extends TextFieldBase {
223
222
this . layoutView . setHintEnabled ( ! ! value ) ;
224
223
}
225
224
[ strokeWidthProperty . setNative ] ( value : CoreTypes . LengthType ) {
226
- // TODO: find why it fails in cli build
227
- //@ts -ignore
228
225
this . layoutView . setBoxStrokeWidth ( Length . toDevicePixels ( value , 0 ) ) ;
229
226
}
230
227
231
228
[ strokeWidthFocusedProperty . setNative ] ( value : CoreTypes . LengthType ) {
232
- // TODO: find why it fails in cli build
233
- //@ts -ignore
234
229
this . layoutView . setBoxStrokeWidthFocused ( Length . toDevicePixels ( value , 0 ) ) ;
235
230
}
236
231
237
232
[ strokeColorProperty . setNative ] ( value : Color | string ) {
238
233
const color = value ? ( value instanceof Color ? value . android : new Color ( value ) . android ) : null ;
239
- // TODO: find why it fails in cli build
240
- //@ts -ignore
241
234
if ( this . layoutView . setBoxStrokeColorStateList ) {
242
235
const inactiveColor = this . strokeInactiveColor instanceof Color ? this . strokeInactiveColor . android : undefined ;
243
236
const disabledColor = this . strokeDisabledColor instanceof Color ? this . strokeDisabledColor . android : undefined ;
244
237
const colorStateList = getFullColorStateList ( color , inactiveColor , disabledColor ) ;
245
- //@ts -ignore
246
238
this . layoutView . setBoxStrokeColorStateList ( colorStateList ) ;
247
239
} else {
248
240
this . layoutView . setBoxStrokeColor ( color ) ;
@@ -251,27 +243,20 @@ export class TextField extends TextFieldBase {
251
243
252
244
[ strokeInactiveColorProperty . setNative ] ( value : Color | string ) {
253
245
const color = value ? ( value instanceof Color ? value . android : new Color ( value ) . android ) : null ;
254
-
255
- // TODO: find why it fails in cli build
256
- //@ts -ignore
257
246
if ( this . layoutView . setBoxStrokeColorStateList ) {
258
247
const activeColor = this . strokeColor instanceof Color ? this . strokeColor . android : this . layoutView . getBoxStrokeColor ( ) ;
259
248
const disabledColor = this . strokeDisabledColor instanceof Color ? this . strokeDisabledColor . android : undefined ;
260
249
const colorStateList = getFullColorStateList ( activeColor , color , disabledColor ) ;
261
- //@ts -ignore
262
250
this . layoutView . setBoxStrokeColorStateList ( colorStateList ) ;
263
251
}
264
252
}
265
253
266
254
[ strokeDisabledColorProperty . setNative ] ( value : Color | string ) {
267
255
const color = value ? ( value instanceof Color ? value . android : new Color ( value ) . android ) : null ;
268
- // TODO: find why it fails in cli build
269
- //@ts -ignore
270
256
if ( this . layoutView . setBoxStrokeColorStateList ) {
271
257
const activeColor = this . strokeColor instanceof Color ? this . strokeColor . android : this . layoutView . getBoxStrokeColor ( ) ;
272
258
const inactiveColor = this . strokeInactiveColor instanceof Color ? this . strokeInactiveColor . android : undefined ;
273
259
const colorStateList = getFullColorStateList ( activeColor , inactiveColor , color ) ;
274
- //@ts -ignore
275
260
this . layoutView . setBoxStrokeColorStateList ( colorStateList ) ;
276
261
}
277
262
}
0 commit comments