mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): add equalityComparer to border-radius properties (#10185)
This commit is contained in:
@@ -1171,6 +1171,7 @@ export const borderTopLeftRadiusProperty = new CssProperty<Style, CoreTypes.Leng
|
||||
target.backgroundInternal = target.backgroundInternal.withBorderTopLeftRadius(value);
|
||||
},
|
||||
valueConverter: Length.parse,
|
||||
equalityComparer: Length.equals,
|
||||
});
|
||||
borderTopLeftRadiusProperty.register(Style);
|
||||
|
||||
@@ -1187,6 +1188,7 @@ export const borderTopRightRadiusProperty = new CssProperty<Style, CoreTypes.Len
|
||||
target.backgroundInternal = target.backgroundInternal.withBorderTopRightRadius(value);
|
||||
},
|
||||
valueConverter: Length.parse,
|
||||
equalityComparer: Length.equals,
|
||||
});
|
||||
borderTopRightRadiusProperty.register(Style);
|
||||
|
||||
@@ -1203,6 +1205,7 @@ export const borderBottomRightRadiusProperty = new CssProperty<Style, CoreTypes.
|
||||
target.backgroundInternal = target.backgroundInternal.withBorderBottomRightRadius(value);
|
||||
},
|
||||
valueConverter: Length.parse,
|
||||
equalityComparer: Length.equals,
|
||||
});
|
||||
borderBottomRightRadiusProperty.register(Style);
|
||||
|
||||
@@ -1219,6 +1222,7 @@ export const borderBottomLeftRadiusProperty = new CssProperty<Style, CoreTypes.L
|
||||
target.backgroundInternal = target.backgroundInternal.withBorderBottomLeftRadius(value);
|
||||
},
|
||||
valueConverter: Length.parse,
|
||||
equalityComparer: Length.equals,
|
||||
});
|
||||
borderBottomLeftRadiusProperty.register(Style);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user