fix(core): add equalityComparer to border-radius properties (#10185)

This commit is contained in:
Igor Randjelovic
2023-01-31 07:22:42 +01:00
committed by GitHub
parent 497b2d737e
commit 571d5156ec

View File

@@ -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);