@@ -196,7 +196,6 @@ export class TextField extends TextFieldBase {
196196 const nColor = getColorStateList ( color ) ;
197197 this . layoutView . setErrorTextColor ( nColor ) ;
198198 // TODO: find why it fails in cli build
199- //@ts -ignore
200199 this . layoutView . setBoxStrokeErrorColor ( nColor ) ;
201200 }
202201
@@ -223,26 +222,19 @@ export class TextField extends TextFieldBase {
223222 this . layoutView . setHintEnabled ( ! ! value ) ;
224223 }
225224 [ strokeWidthProperty . setNative ] ( value : CoreTypes . LengthType ) {
226- // TODO: find why it fails in cli build
227- //@ts -ignore
228225 this . layoutView . setBoxStrokeWidth ( Length . toDevicePixels ( value , 0 ) ) ;
229226 }
230227
231228 [ strokeWidthFocusedProperty . setNative ] ( value : CoreTypes . LengthType ) {
232- // TODO: find why it fails in cli build
233- //@ts -ignore
234229 this . layoutView . setBoxStrokeWidthFocused ( Length . toDevicePixels ( value , 0 ) ) ;
235230 }
236231
237232 [ strokeColorProperty . setNative ] ( value : Color | string ) {
238233 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
241234 if ( this . layoutView . setBoxStrokeColorStateList ) {
242235 const inactiveColor = this . strokeInactiveColor instanceof Color ? this . strokeInactiveColor . android : undefined ;
243236 const disabledColor = this . strokeDisabledColor instanceof Color ? this . strokeDisabledColor . android : undefined ;
244237 const colorStateList = getFullColorStateList ( color , inactiveColor , disabledColor ) ;
245- //@ts -ignore
246238 this . layoutView . setBoxStrokeColorStateList ( colorStateList ) ;
247239 } else {
248240 this . layoutView . setBoxStrokeColor ( color ) ;
@@ -251,27 +243,20 @@ export class TextField extends TextFieldBase {
251243
252244 [ strokeInactiveColorProperty . setNative ] ( value : Color | string ) {
253245 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
257246 if ( this . layoutView . setBoxStrokeColorStateList ) {
258247 const activeColor = this . strokeColor instanceof Color ? this . strokeColor . android : this . layoutView . getBoxStrokeColor ( ) ;
259248 const disabledColor = this . strokeDisabledColor instanceof Color ? this . strokeDisabledColor . android : undefined ;
260249 const colorStateList = getFullColorStateList ( activeColor , color , disabledColor ) ;
261- //@ts -ignore
262250 this . layoutView . setBoxStrokeColorStateList ( colorStateList ) ;
263251 }
264252 }
265253
266254 [ strokeDisabledColorProperty . setNative ] ( value : Color | string ) {
267255 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
270256 if ( this . layoutView . setBoxStrokeColorStateList ) {
271257 const activeColor = this . strokeColor instanceof Color ? this . strokeColor . android : this . layoutView . getBoxStrokeColor ( ) ;
272258 const inactiveColor = this . strokeInactiveColor instanceof Color ? this . strokeInactiveColor . android : undefined ;
273259 const colorStateList = getFullColorStateList ( activeColor , inactiveColor , color ) ;
274- //@ts -ignore
275260 this . layoutView . setBoxStrokeColorStateList ( colorStateList ) ;
276261 }
277262 }
0 commit comments