Skip to content

Commit fe11456

Browse files
dosomderNathanWalker
authored andcommitted
fix(text-view): only reload text if hint is showing on ios (#8662)
1 parent 6081343 commit fe11456

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nativescript-core/ui/text-view/text-view.ios.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class NoScrollAnimationUITextView extends UITextView {
8888
export class TextView extends TextViewBaseCommon {
8989
nativeViewProtected: UITextView;
9090
private _delegate: UITextViewDelegateImpl;
91-
private _isShowingHint: boolean;
91+
_isShowingHint: boolean;
9292
public _isEditing: boolean;
9393

9494
private _hintColor = (majorVersion <= 12 || !UIColor.placeholderTextColor) ? UIColor.blackColor.colorWithAlphaComponent(0.22) : UIColor.placeholderTextColor;
@@ -129,7 +129,9 @@ export class TextView extends TextViewBaseCommon {
129129
}
130130

131131
public textViewShouldBeginEditing(textView: UITextView): boolean {
132-
this.showText();
132+
if (this._isShowingHint) {
133+
this.showText();
134+
}
133135

134136
return true;
135137
}

0 commit comments

Comments
 (0)