fix(text-view): only reload text if hint is showing on ios (#8662)

This commit is contained in:
dosomder
2020-06-30 07:18:25 +02:00
committed by GitHub
parent bd12bafb4a
commit ec17727e91

View File

@ -88,7 +88,7 @@ class NoScrollAnimationUITextView extends UITextView {
export class TextView extends TextViewBaseCommon {
nativeViewProtected: UITextView;
private _delegate: UITextViewDelegateImpl;
private _isShowingHint: boolean;
_isShowingHint: boolean;
public _isEditing: boolean;
private _hintColor = (majorVersion <= 12 || !UIColor.placeholderTextColor) ? UIColor.blackColor.colorWithAlphaComponent(0.22) : UIColor.placeholderTextColor;
@ -129,7 +129,9 @@ export class TextView extends TextViewBaseCommon {
}
public textViewShouldBeginEditing(textView: UITextView): boolean {
this.showText();
if (this._isShowingHint) {
this.showText();
}
return true;
}