Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
fix: render initial methods
Browse files Browse the repository at this point in the history
  • Loading branch information
RyotaSugawara committed Sep 1, 2017
1 parent e025622 commit 7d891fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ export class Carousel extends React.Component<Props, State> {
}

renderInitialRect() {
const firstChild = React.Children.toArray(this.props.children)[0];
return (
<li style={{width: '100%'}}>
{this.props.children[0]}
{firstChild}
</li>
);
}
Expand Down

0 comments on commit 7d891fb

Please sign in to comment.