mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix: setting text in Span to number/null/undefined
This commit is contained in:
@@ -4,7 +4,7 @@ import dependencyObservable = require("ui/core/dependency-observable");
|
||||
|
||||
export class TextBase extends common.TextBase {
|
||||
public _onTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
var newValue = types.isNullOrUndefined(data.newValue) ? "" : data.newValue + "";
|
||||
var newValue = types.toUIString(data.newValue);
|
||||
this.ios.text = newValue;
|
||||
this.style._updateTextDecoration();
|
||||
this.style._updateTextTransform();
|
||||
|
||||
Reference in New Issue
Block a user