From ec17727e91f7a3209ada2c7de0bcf59c98c4e62a Mon Sep 17 00:00:00 2001 From: dosomder Date: Tue, 30 Jun 2020 07:18:25 +0200 Subject: [PATCH] fix(text-view): only reload text if hint is showing on ios (#8662) --- nativescript-core/ui/text-view/text-view.ios.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nativescript-core/ui/text-view/text-view.ios.ts b/nativescript-core/ui/text-view/text-view.ios.ts index eb6f1dbe9..7a97738da 100644 --- a/nativescript-core/ui/text-view/text-view.ios.ts +++ b/nativescript-core/ui/text-view/text-view.ios.ts @@ -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; }