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 {
115
115
editText . setBackground ( null ) ;
116
116
// layoutView.setHintEnabled(false);
117
117
}
118
+ try {
119
+ layoutView . setErrorIconDrawable ( null ) ;
120
+ } catch ( error ) { }
118
121
119
- layoutView . setErrorIconDrawable ( null ) ;
120
122
// layoutView.setFocusableInTouchMode(true); // to prevent focus on view creation
121
123
return layoutView ;
122
124
}
@@ -130,7 +132,9 @@ export class TextField extends TextFieldBase {
130
132
}
131
133
[ hintProperty . setNative ] ( value : string ) {
132
134
const text = value === null || value === undefined ? null : value . toString ( ) ;
133
- this . layoutView . setHint ( text ) ;
135
+ try {
136
+ this . layoutView . setHint ( text ) ;
137
+ } catch ( error ) { }
134
138
}
135
139
136
140
[ placeholderColorProperty . setNative ] ( value : Color ) {
You can’t perform that action at this time.
0 commit comments