Skip to content

Commit 3faf238

Browse files
Define line cap on trail too
1 parent 2210bfe commit 3faf238

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Circle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Circle extends Component {
5151
render() {
5252
const {
5353
prefixCls, strokeWidth, trailWidth, strokeColor, percent,
54-
trailColor, strokeLinecap, style, className, ...restProps,
54+
trailColor, strokeLinecap, trailLinecap, style, className, ...restProps,
5555
} = this.props;
5656
const { pathString, trailPathStyle, strokePathStyle } = this.getPathStyles();
5757
delete restProps.percent;
@@ -69,6 +69,7 @@ class Circle extends Component {
6969
d={pathString}
7070
stroke={trailColor}
7171
strokeWidth={trailWidth || strokeWidth}
72+
strokeLinecap={trailLinecap}
7273
fillOpacity="0"
7374
style={trailPathStyle}
7475
/>

0 commit comments

Comments
 (0)