From 830b012f233bfde586d68e58da1236fa3d3f580a Mon Sep 17 00:00:00 2001 From: dosomder Date: Mon, 22 Jun 2020 12:33:27 +0200 Subject: [PATCH] fix(text-view): only reload text if hint is showing on ios --- 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 eb6f1dbe9d..7a97738da5 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; }