Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/segmented-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class SegmentedControls extends React.Component {
borderBottomRightRadius: adjustedBorderRadius
}
}
if (index === this.props.options.length - 2) {
Copy link

@eHammarstrom eHammarstrom Aug 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simply changing if to else if solves the problem. The additional conditional does not seem necessary.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eHammarstrom when this fix going to be merged?
Thanks!

if (index === this.props.options.length - 2 && this.props.options.length !== 2) {
borderRadiusStyle = config.direction === 'row' ?
{
borderRightWidth: config.separatorWidth,
Expand Down