mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
Fix: string values read from XML are not converted to the correct type before assignment
This commit is contained in:
@ -117,13 +117,13 @@ export class Property<T extends ViewBase, U> implements PropertyDescriptor {
|
||||
delete this[defaultValueKey];
|
||||
}
|
||||
} else {
|
||||
this[key] = value;
|
||||
this[key] = unboxedValue;
|
||||
if (setNativeValue) {
|
||||
if (!(defaultValueKey in this)) {
|
||||
this[defaultValueKey] = this[native];
|
||||
}
|
||||
|
||||
this[native] = value;
|
||||
this[native] = unboxedValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user