Skip to content

Commit 4392a37

Browse files
authored
Merge pull request #203 from myxious/master
Mapping keys to refs bug fix
2 parents dc7c4ea + a5a747a commit 4392a37

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
@@ -182,7 +182,7 @@ class SortablePane extends React.Component<SortablePaneProps, State> {
182182
const newPanes = this.panes.map((pane, i) => {
183183
return {
184184
key: pane.key,
185-
ref: panes[this.order.indexOf(i)],
185+
ref: panes[this.order[i]],
186186
};
187187
});
188188
this.setState({ panes: newPanes });

0 commit comments

Comments
 (0)