mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix setting text property to number. (#3449)
Fix setting JS property from native.
This commit is contained in:
@@ -14,7 +14,7 @@ class CheckedChangeListener extends java.lang.Object implements android.widget.C
|
||||
onCheckedChanged(buttonView: android.widget.CompoundButton, isChecked: boolean): void {
|
||||
let owner = this.owner.get();
|
||||
if (owner) {
|
||||
owner.nativePropertyChanged(checkedProperty, isChecked);
|
||||
checkedProperty.nativeValueChange(owner, isChecked);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class SwitchChangeHandlerImpl extends NSObject {
|
||||
public valueChanged(sender: UISwitch) {
|
||||
let owner = this._owner.get();
|
||||
if (owner) {
|
||||
owner.nativePropertyChanged(checkedProperty, sender.on);
|
||||
checkedProperty.nativeValueChange(owner, sender.on);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user