Skip to content

Commit 3ea7365

Browse files
authored
fix(animations): register both style's "name" and "cssName" (NativeScript#3810)
1 parent 4e69525 commit 3ea7365

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tns-core-modules/ui/core/properties/properties.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,11 @@ export class CssAnimationProperty<T extends Style, U> {
570570
const propertyName = options.name;
571571
this.name = propertyName;
572572

573-
CssAnimationProperty.properties[options.cssName || propertyName] = this;
573+
CssAnimationProperty.properties[propertyName] = this;
574+
if (options.cssName && options.cssName !== propertyName) {
575+
CssAnimationProperty.properties[options.cssName] = this;
576+
}
577+
574578
this._valueConverter = options.valueConverter;
575579

576580
const cssName = "css:" + (options.cssName || propertyName);

0 commit comments

Comments
 (0)