mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 23:13:04 +08:00
delegate should be set on nativeTextViewProtected
just like textfields. Fixes components extending this one
This commit is contained in:
@ -85,6 +85,7 @@ class NoScrollAnimationUITextView extends UITextView {
|
|||||||
@CSSType('TextView')
|
@CSSType('TextView')
|
||||||
export class TextView extends TextViewBaseCommon {
|
export class TextView extends TextViewBaseCommon {
|
||||||
nativeViewProtected: UITextView;
|
nativeViewProtected: UITextView;
|
||||||
|
nativeTextViewProtected: UITextView;
|
||||||
private _delegate: UITextViewDelegateImpl;
|
private _delegate: UITextViewDelegateImpl;
|
||||||
_isShowingHint: boolean;
|
_isShowingHint: boolean;
|
||||||
public _isEditing: boolean;
|
public _isEditing: boolean;
|
||||||
@ -114,11 +115,11 @@ export class TextView extends TextViewBaseCommon {
|
|||||||
@profile
|
@profile
|
||||||
public onLoaded() {
|
public onLoaded() {
|
||||||
super.onLoaded();
|
super.onLoaded();
|
||||||
this.ios.delegate = this._delegate;
|
this.nativeTextViewProtected.delegate = this._delegate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public onUnloaded() {
|
public onUnloaded() {
|
||||||
this.ios.delegate = null;
|
this.nativeTextViewProtected.delegate = null;
|
||||||
super.onUnloaded();
|
super.onUnloaded();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user