File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,10 @@ export class TextField extends TextFieldBase {
115115 editText . setBackground ( null ) ;
116116 // layoutView.setHintEnabled(false);
117117 }
118+ try {
119+ layoutView . setErrorIconDrawable ( null ) ;
120+ } catch ( error ) { }
118121
119- layoutView . setErrorIconDrawable ( null ) ;
120122 // layoutView.setFocusableInTouchMode(true); // to prevent focus on view creation
121123 return layoutView ;
122124 }
@@ -130,7 +132,9 @@ export class TextField extends TextFieldBase {
130132 }
131133 [ hintProperty . setNative ] ( value : string ) {
132134 const text = value === null || value === undefined ? null : value . toString ( ) ;
133- this . layoutView . setHint ( text ) ;
135+ try {
136+ this . layoutView . setHint ( text ) ;
137+ } catch ( error ) { }
134138 }
135139
136140 [ placeholderColorProperty . setNative ] ( value : Color ) {
You can’t perform that action at this time.
0 commit comments