Skip to content

Commit aab07db

Browse files
committed
fix: Fix unique 'key' props issue.
1 parent 70627e6 commit aab07db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default class Split extends React.Component<SplitProps, SplitState> {
177177
BarCom = React.createElement('div', { ...barProps }, <div onMouseDown={this.onMouseDown.bind(this, idx + 1)} />)
178178
}
179179
return (
180-
<React.Fragment>
180+
<React.Fragment key={idx}>
181181
{BarCom}
182182
{React.cloneElement(element, { ...props })}
183183
</React.Fragment>

0 commit comments

Comments
 (0)