mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
text-field hint now can be set to number
This commit is contained in:
@@ -260,6 +260,6 @@ export class EditableTextBase extends common.EditableTextBase {
|
||||
return;
|
||||
}
|
||||
|
||||
editableTextBase.android.setHint(data.newValue);
|
||||
editableTextBase.android.setHint(data.newValue + "");
|
||||
}
|
||||
}
|
||||
@@ -130,6 +130,6 @@ export class TextField extends common.TextField {
|
||||
|
||||
public _onHintPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var textField = <TextField>data.object;
|
||||
textField.ios.placeholder = data.newValue;
|
||||
textField.ios.placeholder = data.newValue + "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user