mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(animations): register both style's "name" and "cssName" (#3810)
This commit is contained in:
@@ -570,7 +570,11 @@ export class CssAnimationProperty<T extends Style, U> {
|
||||
const propertyName = options.name;
|
||||
this.name = propertyName;
|
||||
|
||||
CssAnimationProperty.properties[options.cssName || propertyName] = this;
|
||||
CssAnimationProperty.properties[propertyName] = this;
|
||||
if (options.cssName && options.cssName !== propertyName) {
|
||||
CssAnimationProperty.properties[options.cssName] = this;
|
||||
}
|
||||
|
||||
this._valueConverter = options.valueConverter;
|
||||
|
||||
const cssName = "css:" + (options.cssName || propertyName);
|
||||
|
||||
Reference in New Issue
Block a user